Iterator
An object that enables traversal through the elements in a collection.
Methods
next
static next()
- Return Value
Type
Description
Object
An object that contains values for the properties
doneandvalueproperties.If there are elements that were not traversed,
doneisfalseandvalueis the next element in the collection.If all of the elements were traversed,
doneistrueandvalueisnull.
10 September 2026