removeItem.js 371 B

1234567891011
  1. import { executeCallback, normaliseKey } from 'localforage-driver-commons';
  2. export function removeItem(key$, callback) {
  3. var _this = this;
  4. key$ = normaliseKey(key$);
  5. var promise = this.ready().then(function () {
  6. _this._dbInfo.mStore.rm(key$);
  7. });
  8. executeCallback(promise, callback);
  9. return promise;
  10. }
  11. //# sourceMappingURL=removeItem.js.map