-
-
Notifications
You must be signed in to change notification settings - Fork 641
Collection.count()
David Fahlander edited this page Mar 28, 2014
·
15 revisions
collection.count(callback)
callback: Function | [optional] function (count) { } |
count: Number | Number of items in the collection |
If callback is omitted and operation succeeds, returned Promise will resolve with the result of the operation, calling any [Promise.then()](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.
Dexie.js - minimalistic and bullet proof indexedDB library