Create Your First Generator in JavaScript

Share this video with your friends

Send Tweet

With a solid understanding of iterators, seeing the benefits of using generators becomes much more obvious. Generators allow us to write iterators with a much more concise syntax and give us more flexibility with each iteration.

JL decentraliser
JL decentraliser
~ 5 years ago

createReverseIterator is not used by the function in this example