Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1af33d1

Browse files
Give me five
1 parent a43c18f commit 1af33d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎1-js/11-async/05-promise-api/article.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ In practice, this method is almost never used.
309309
310310
## Summary
311311
312-
There are 5 static methods of `Promise` class:
312+
There are 6 static methods of `Promise` class:
313313
314314
1. `Promise.all(promises)` -- waits for all promises to resolve and returns an array of their results. If any of the given promises rejects, it becomes the error of `Promise.all`, and all other results are ignored.
315315
2. `Promise.allSettled(promises)` (recently added method) -- waits for all promises to settle and returns their results as an array of objects with:
@@ -320,4 +320,4 @@ There are 5 static methods of `Promise` class:
320320
5. `Promise.resolve(value)` -- makes a resolved promise with the given value.
321321
6. `Promise.reject(error)` -- makes a rejected promise with the given error.
322322
323-
Of these five, `Promise.all` is probably the most common in practice.
323+
Of all these, `Promise.all` is probably the most common in practice.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /