We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7c8c75 commit 2921673Copy full SHA for 2921673
1-js/11-async/05-promise-api/article.md
@@ -13,10 +13,10 @@ That's what `Promise.all` is for.
13
The syntax is:
14
15
```js
16
-let promise = Promise.all([...promises...]);
+let promise = Promise.all(iterable);
17
```
18
19
-`Promise.all` takes an array of promises (it technically can be any iterable, but is usually an array) and returns a new promise.
+`Promise.all` takes an iterable (usually, an array of promises) and returns a new promise.
20
21
The new promise resolves when all listed promises are resolved, and the array of their results becomes its result.
22
0 commit comments