add consistency

quick description:
before: .catch(f) is the same as promise.then(null, f)
after: .catch(f) is the same as .then(null, f)
This commit is contained in:
Artur Haurylkevich 2019-11-18 11:15:01 +03:00 committed by GitHub
parent e515f80a9f
commit fd70f751e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ let promise = new Promise((resolve, reject) => {
}); });
*!* *!*
// .catch(f) is the same as promise.then(null, f) // .catch(f) is the same as .then(null, f)
promise.catch(alert); // shows "Error: Whoops!" after 1 second promise.catch(alert); // shows "Error: Whoops!" after 1 second
*/!* */!*
``` ```