node_modules/localforage/test copy/localforage.component.js
// Supply the number of keys in the datastore to the callback function.
Supply the number of keys in the datastore to the callback function.
Supply the number of keys in the datastore to the callback function .
function length(callback) {
        var _this = this;
        return new Promise(function(resolve) {
            _this.ready().then(function() {
                var result = localStorage.length;
                if (callback) {
                    callback(result);
                }
                resolve(result);
            });
        });
    }
function length ( callback ) { var _this = this ; return new Promise ( function ( resolve ) { _this . ready ( ) . then ( function ( ) { var result = localStorage . length ; if ( callback ) { callback ( result ) ; } resolve ( result ) ; } ) ; } ) ; }
Supply the number of keys in the datastore to the callback function.
Supply the number of keys in the datastore to the callback function .