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`.
Glossary: JavaScript Beyond the Basics
Also written: iterators
An object whose `next()` method returns `{ value, done }`, handing out items one at a time until `done` is `true`.