Glossary: JavaScript Beyond the Basics
Generator
Also written: generator function, function*, yield, yield*
A `function*` that uses `yield` to hand out one value at a time and pause. Calling it returns an iterator and runs no code until `next()` is called, so it can be lazy or describe an endless sequence.