localForage-getItems
localForage-getItems copied to clipboard
Add support for the IndexedDB `getAll` function
Newer versions of IndexedDB have a getAll
function that can be used to fetch many entries instead of openCursor
.
This PR adds support for calling getAll
if it's available.
The getAll
method is faster, apparently up to 40%.
getAll returns array instead of object with key val index