Course contentsShow
JavaScript
Lesson 2009 of 2,72342. Iteration Protocols Deep DivePro lesson

The Iterator Object Contract

An iterator must have a next() method returning {value, done} where done signals completion.

This lesson is for subscribers

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