localforage.js
// Same as localStorage's key() method, except takes a callback.
Same as localStorage's key() method, except takes a callback.
Same as localStorage ' s key () method except takes a callback .
function key(n, callback) {
        var _this = this;
        return new Promise(function(resolve) {
            _this.ready().then(function() {
                var result = localStorage.key(n);
                if (result) {
                    result = result.substring(keyPrefix.length);
                }
                if (callback) {
                    callback(result);
                }
                resolve(result);
            });
        });
    }
function key ( n , callback ) { var _this = this ; return new Promise ( function ( resolve ) { _this . ready ( ) . then ( function ( ) { var result = localStorage . key ( n ) ; if ( result ) { result = result . substring ( keyPrefix . length ) ; } if ( callback ) { callback ( result ) ; } resolve ( result ) ; } ) ; } ) ; }
Same as localStorage's key() method, except takes a callback.
Same as localStorage ' s key () method except takes a callback .
// Remove the prefix from the key, if a key is found.