minor fixes

This commit is contained in:
Ilya Kantor 2022-02-12 16:15:38 +03:00
parent d7c8c7506e
commit 29216730a8

View file

@ -13,10 +13,10 @@ That's what `Promise.all` is for.
The syntax is: The syntax is:
```js ```js
let promise = Promise.all([...promises...]); let promise = Promise.all(iterable);
``` ```
`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.
The new promise resolves when all listed promises are resolved, and the array of their results becomes its result. The new promise resolves when all listed promises are resolved, and the array of their results becomes its result.