Generators are an odd part of the JavaScript language. They have strange starred function definitions. They add this mysterious yield keyword. They let us tell the engine that some object can be used in a for...of loop or with spread syntax.

14m read timeFrom jrsinclair.com
Post cover image
Table of contents
Tim Tams and lazy iteratorsInfinite IteratorsWhy aren’t all these utility functions built-in?Message passingWrapping up

Sort: