Class: Iterator

Iterator


new Iterator()

Used to loop over a list/set of elements. Helper class.
Source:
Iterator.js

Methods


hasNext()

Checks for another element
Source:
Iterator.js
Returns:
True if there is another element available else false
Type
Boolean

next()

Returns the next element, must not be called if there isn't another element
Source:
Iterator.js
Returns:
the next element
Type
Object