Skip to content

Glossary: JavaScript Beyond the Basics

Iterator

Also written: iterators

An object whose `next()` method returns `{ value, done }`, handing out items one at a time until `done` is `true`.

Where the book teaches it

Related terms

IterableGenerator