MCPcopy
hub / github.com/localForage/localForage / length

Function length

src/drivers/localstorage.js:208–216  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

206
207// Supply the number of keys in the datastore to the callback function.
208function length(callback) {
209 var self = this;
210 var promise = self.keys().then(function(keys) {
211 return keys.length;
212 });
213
214 executeCallback(promise, callback);
215 return promise;
216}
217
218// Remove an item from the store, nice and simple.
219function removeItem(key, callback) {

Callers

nothing calls this directly

Calls 2

keysMethod · 0.80
executeCallbackFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…