1234567891011121314151617181920 |
- import { executeCallback } from 'localforage-driver-commons';
- export function key(idx, callback) {
- var _this = this;
- var promise = this.ready().then(function () {
- var result;
- try {
- result = _this._dbInfo.mStore.key(idx);
- if (result === undefined) {
- result = null;
- }
- }
- catch (_a) {
- result = null;
- }
- return result;
- });
- executeCallback(promise, callback);
- return promise;
- }
- //# sourceMappingURL=key.js.map
|