iterators

Generators in JavaScript - Introduction

Generators in JavaScript represent a special kind of function that can be paused and continued and can also produce multiple values.

JavaScript Iterators

Iterators in JavaScript. An object is an iterator when it knows how to access items from a collection one at a time.