Course contentsShow
JavaScript
Lesson 1085 of 2,72325. Iterators and GeneratorsPro lesson

Implementing the Iterator Protocol

Learn the structure of a valid iterator: an object with a next() method that returns {value, done}.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.