Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function count(cb) {
return localForage.length().then(wrap(cb, true), cb);
}
return new Promise((resolve, reject) => {
localForage.length().then((length) => resolve(length)).catch((errors) => reject(errors));
});
}
function count(cb) {
return localForage.length().then(wrap(cb, true), cb);
}