SyncCursor

baja. SyncCursor

new SyncCursor()

Description:
  • A generic Synchronous cursor used for iteration.

Source:

Extends

Methods

(abstract) each(func)

Description:
  • Iterate through the Cursor and call a function on every item.

Source:
Inherited From:
Parameters:
Name Type Description
func function

function called on every iteration with the
'value' being used as an argument.

(abstract) get()

Description:
  • Return the current item.

Source:
Inherited From:
Returns:

the cursor value (null if none available).

(abstract) next() → {Boolean}

Description:
  • Advance cursor and return true if successful.

Source:
Returns:
Type
Boolean