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

Function length

test/dummyStorageDriver.js:185–198  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

183 }
184
185 function length(callback) {
186 var self = this;
187 var promise = new Promise(function(resolve, reject) {
188 self
189 .keys()
190 .then(function(keys) {
191 resolve(keys.length);
192 })
193 .catch(reject);
194 });
195
196 executeCallback(promise, callback);
197 return promise;
198 }
199
200 function removeItem(key, callback) {
201 var self = this;

Callers

nothing calls this directly

Calls 2

keysMethod · 0.80
executeCallbackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…