Update article.md
"We can get loop over values by `for..of`:" -> "We can loop over values using `for..of`"
This commit is contained in:
parent
a193448b31
commit
7dd438a25c
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ But usually the first syntax is preferred, as the star `*` denotes that it's a g
|
|||
|
||||
As you probably already guessed looking at the `next()` method, generators are [iterable](info:iterable).
|
||||
|
||||
We can get loop over values by `for..of`:
|
||||
We can loop over values using `for..of`:
|
||||
|
||||
```js run
|
||||
function* generateSequence() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue