Skip to content

Commit 2921673

Browse files
committed
minor fixes
1 parent d7c8c75 commit 2921673

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ That's what `Promise.all` is for.
1313
The syntax is:
1414

1515
```js
16-
let promise = Promise.all([...promises...]);
16+
let promise = Promise.all(iterable);
1717
```
1818

19-
`Promise.all` takes an array of promises (it technically can be any iterable, but is usually an array) and returns a new promise.
19+
`Promise.all` takes an iterable (usually, an array of promises) and returns a new promise.
2020

2121
The new promise resolves when all listed promises are resolved, and the array of their results becomes its result.
2222

0 commit comments

Comments
 (0)