Skip to content

Collection.each()

Christopher Hunt edited this page Nov 25, 2016 · 5 revisions

Syntax

collection.each(callback)

Parameters

callback: Function function (item, cursor) { }

Callback Parameters

item: Object Found object
cursor: IDBCursor The cursor of the object being iterated.

Return Value

Promise

Remarks

When iteration finishes, the returned Promise will resolve with undefined, calling any Promise.then() callback.

If the operation fails, the returned Promise will reject, calling any Promise.catch() callback.

Clone this wiki locally