API Docs for: 1.0.0
Show:

ArrayIterator Class

Iterator for an array. Useful for any class that manages an array and wants to mix in Y.Iterable. Safe, but not stable, when the array is modified during iteration.

Methods

atBeginning

() Boolean

Returns:

Boolean:

true if at the beginning

atEnd

() Boolean

Returns:

Boolean:

true if at the end

moveToBeginning

()

Move to the beginning of the list.

moveToEnd

()

Move to the end of the list.

next

() Mixed

Returns:

Mixed:

next value in the list or undefined if at the end

prev

() Mixed

Returns:

Mixed:

previous value in the list or undefined if at the beginning