fixes #1669
This commit is contained in:
parent
2483af0eda
commit
994390265a
5 changed files with 19 additions and 20 deletions
|
@ -120,11 +120,10 @@ Here's a small cheatsheet:
|
|||
| `next()` return value is | any value | `Promise` |
|
||||
| to loop, use | `for..of` | `for await..of` |
|
||||
|
||||
|
||||
````warn header="The spread operator `...` doesn't work asynchronously"
|
||||
````warn header="The spread syntax `...` doesn't work asynchronously"
|
||||
Features that require regular, synchronous iterators, don't work with asynchronous ones.
|
||||
|
||||
For instance, a spread operator won't work:
|
||||
For instance, a spread syntax won't work:
|
||||
```js
|
||||
alert( [...range] ); // Error, no Symbol.iterator
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue