776 Views
ES6 generators provide a new way of working with data that should be iterated. In fact, generators produce an iterator when you initially call the generator function. One of the things that you can do with a generator, that might not be obvious, is iterate over a never-ending series of data items while still allowing the iteration to be halted when you want it to be.
0 comments