Class: SyncCursor

baja. SyncCursor


new SyncCursor()

A generic Synchronous cursor used for iteration.

Extends

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.

Inherited From:

<abstract> get()

Return the current item.

Inherited From:
Returns:

the cursor value (null if none available).


<abstract> next()

Advance cursor and return true if successful.

Returns:
Type
Boolean