12345678910111213 |
- import { executeCallback, normaliseKey } from 'localforage-driver-commons';
- export function getItem(key$, callback) {
- var _this = this;
- key$ = normaliseKey(key$);
- var promise = this.ready().then(function () {
- var result = _this._dbInfo.mStore.get(key$);
- // Deserialise if the result is not null or undefined
- return result == null ? null : _this._dbInfo.serializer.deserialize(result); //tslint:disable-line:triple-equals
- });
- executeCallback(promise, callback);
- return promise;
- }
- //# sourceMappingURL=getItem.js.map
|