You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/11-async/05-promise-api/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -302,7 +302,7 @@ There are 5 static methods of `Promise` class:
302
302
- `status`: `"fulfilled"` or `"rejected"`
303
303
- `value` (if fulfilled) or `reason` (if rejected).
304
304
3. `Promise.race(promises)` -- waits for the first promise to settle, and its result/error becomes the outcome.
305
-
4. `Promise.any(promises)` -- waits for the first promise to fulfill, and its result becomes the outcome.If all of the given promises rejects, it becomes the error of `Promise.any`.
305
+
4. `Promise.any(promises)` -- waits for the first promise to fulfill, and its result becomes the outcome.If all of the given promises rejects, it becomes the error of `Promise.any`.
306
306
5. `Promise.resolve(value)` -- makes a resolved promise with the given value.
307
307
6. `Promise.reject(error)` -- makes a rejected promise with the given error.
0 commit comments