451 Views
In JavaScript, generators are special functions that returns a generator function. The generator function returns the next value of an iterable object. It's used for letting us iterate through a collection of objects by using the generator function in a for...of loop. This means the generator function returned conforms to the iterable protocol.
0 comments