Iterators and Generators in ES6 JavaScript

added by JavaScript Kicks
6/18/2018 7:18:41 AM

424 Views

For an object to become an iterator it needs to know how to access values in a collection and keeping track of its position in the list. This is achieved by an object implementing a next method and returning the next value in the sequence.


0 comments