Skip to content

Commit 698f023

Browse files
authored
update iterators.md
challenge 3 editing wrong object literal
1 parent 7f9d23d commit 698f023

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

concepts/Iterators.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ function nextIterator(arr) {
4747
let i = 0;
4848

4949
const inner = {
50-
const next = () => {
50+
next: () => {
5151
const element = arr[i];
5252
i++;
5353

5454
return element;
5555
}
5656
}
57-
57+
5858
return inner;
5959
}
6060

@@ -223,4 +223,4 @@ async function f(noun) {
223223
}
224224

225225
f("dog");
226-
```
226+
```

0 commit comments

Comments
 (0)