Skip to content

Collection.each()

David Fahlander edited this page Mar 28, 2014 · 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 finish, returned Promise will resolve with undefined, calling any Promise.then() callback.

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

Clone this wiki locally