Skip to content

Commit

Permalink
update iterators_and_generators (mdn#30054)
Browse files Browse the repository at this point in the history
* update iterators_and_generators

* Update files/en-us/web/javascript/guide/iterators_and_generators/index.md

* resolve conversation

---------

Co-authored-by: Joshua Chen <[email protected]>
  • Loading branch information
AquanJSW and Josh-Cena authored Nov 6, 2023
1 parent d5bdd81 commit fe33e9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ for (const value of myIterable) {

### Syntaxes expecting iterables

Some statements and expressions expect iterables. For example: the {{jsxref("Statements/for...of", "for...of")}} loops, {{jsxref("Operators/yield*", "yield*")}}.
Some statements and expressions expect iterables. For example: the {{jsxref("Statements/for...of", "for...of")}} loops, {{jsxref("Operators/Spread_syntax", "spread syntax", "", 1)}}, {{jsxref("Operators/yield*", "yield*")}}, and {{jsxref("Operators/Destructuring_assignment", "destructuring", "", 1)}} syntax.

```js
for (const value of ["a", "b", "c"]) {
Expand Down

0 comments on commit fe33e9c

Please sign in to comment.