Collection.each()

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 be rejected, calling any Promise.catch() callback.

Table of Contents