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