Generators
转载:Generators - javascript.info
Regular functions return only one, single value (or nothing).
Generators can return (“yield”) multiple values, one after another, on-demand. They work great with iterables, allowing to create data streams with ease.
# Generator functions
To create a generator, we...
more...