Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions concepts/Iterators.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ function nextIterator(arr) {
let i = 0;

const inner = {
const next = () => {
next: () => {
const element = arr[i];
i++;

return element;
}
}

return inner;
}

Expand Down Expand Up @@ -223,4 +223,4 @@ async function f(noun) {
}

f("dog");
```
```