Lazy Evaluation of Generators in ES6

added by JavaScript Kicks
3/10/2015 11:54:29 AM

203 Views

Generators in most languages do the least amount of work possible, and generators in JavaScript are no different. When a program invokes a normal function, you can imagine the program jumping into the function and executing code inside the function until the function completes. But, the behavior of a generator function is entirely different from the behavior of a non-generator function.


0 comments