new Cursor()
A generic cursor used for iteration.
Methods
-
<abstract> each(func)
-
Iterate through the Cursor and call a function on every item.
Parameters:
Name Type Description func
function function called on every iteration with the
'value' being used as an argument. -
<abstract> get()
-
Return the current item.
Returns:
the cursor value (null if none available).