Adds getItems method to localForage.
npm install @notesnook/localforage-getitemslocalForage-getItems
====================

Adds getItems method to localForage.
* localForage v1.4.0+
* for earlier versions of localforage, please use the v1.1.x releases
npm i localforage-getitemsgetItem() but you can pass an array with the keys that need to be retrieved.js
var keys = ['asdf','asap','async'];
localforage.getItems(keys).then(function(results) {
console.log(results);
// prints:
// {
// asdf: 'asdf value!',
// asap: 'asap value!',
// async: 'async value!'
// } console.log(results.asdf);
console.log(results['asdf']);
console.log(results[keys[0]]);
// all the above print 'asdf value!'
});
`Invoking
getItems() without arguments (or with null as the first argument) will retrieve all the items of the current driver instance.
`js
localforage.getItems().then(function(results) { });
// or by using callbacks
localforage.getItems(null, function(results) { });
``