Table.get() - zuki/Dexie.js GitHub Wiki

Syntax

table.get(primaryKey, callback)

Parameters

primaryKey Primary key of object to get
callback: Function function (item) { } optional

Callback Parameters

item: Object Found item if any, otherwise undefined.

Return Value

Promise

Remarks

If callback is omitted and operation succeeds, returned Promise will resolve with the result of the operation, calling any Promise.then() callback.

If callback is specified and operation succeeds, given callback will be called and the returned Promise will resolve with the return value of given callback.

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

⚠️ **GitHub.com Fallback** ⚠️