Skip to content

Commit 9d4f10c

Browse files
committed
Fix typo in chapter 8 (fixes nzakas#342)
1 parent 2d53e8c commit 9d4f10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manuscript/08-Iterators-And-Generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ let set = new Set([1, 2, 3, 3, 3, 4, 5]),
565565
console.log(array); // [1,2,3,4,5]
566566
```
567567

568-
This code uses the spread operator inside an array literal to fill in that array with the values from `set`. The spread operator works on all iterables and uses the default iterator to determine which values to include. All values are read from the iterator and inserted into the array in the order in which values where returned from the iterator. This example works because sets are iterables, but it can work equally well on any iterable. Here's another example:
568+
This code uses the spread operator inside an array literal to fill in that array with the values from `set`. The spread operator works on all iterables and uses the default iterator to determine which values to include. All values are read from the iterator and inserted into the array in the order in which values were returned from the iterator. This example works because sets are iterables, but it can work equally well on any iterable. Here's another example:
569569

570570
```js
571571
let map = new Map([ ["name", "Nicholas"], ["age", 25]]),

0 commit comments

Comments
 (0)