Dexie Logo
Documentation

Collection.last()

Syntax

collection.last(callback)

Parameters

callback: Functionfunction (item) { }optional

Callback Parameters

item: ObjectLast item in the collection if any. Otherwise undefined

Return Value

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.

© 2014-2025 Awarica AB

Made with love for great people.

Read Terms & Conditions and Privacy Policy.