ES6 - generators

added by bpwndaddy
5/12/2015 2:27:20 PM

3 Kicks, 116 Views

Generators are simply subtypes of Iterators which I wrote about previously. They are a special kind of function that can be suspended and resumed, which is making a difference to iterators. Generators use function* and yield operators to work their magic.


0 comments