Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa0387b

Browse files
authored
Adds very small clarification re: .catch()
1 parent f06d33d commit fa0387b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fundamentals/promises.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ If you are only interested in the error case, you can pass `null` for the first
8181
somePromise.then(null, onRejected)
8282
```
8383

84-
or you can use another method available on a promise, which is just a shorthand for calling `then()` with `null` as its first argument:
84+
or you can use another method available on a promise, `.catch()`, which is just a shorthand for calling `then()` with `null` as its first argument:
8585

8686
```js
8787
somePromise

0 commit comments

Comments
 (0)