Because it's still really fucking hard to find decent ES6 generator resources online.
Assumes you're running at least Node 4.x.
Execute each of these with node 1.js
, node 2.js
etc.
- ES6 Basics by David Walsh (basics on synchronous generators, parameters,
yield
,function*
) - Diving Deeper by David Walsh (exceptions, delegation,
yield*
) - Async generators by David Walsh
MIT, see LICENSE file