Iterator
Sequentially access the elements of a collection.
Provide a way to access the elements of an aggregate/collection object sequentially without exposing its underlying representation.
Most frequently used in Javascript.
The Iterator pattern allows clients to effectively loop over a collection of objects.
The Iterator pattern allows JavaScript developers to design looping constructs that are far more flexible and sophisticated.
Last updated
Was this helpful?