Skip to content

Instantly share code, notes, and snippets.

@yannvr
Created December 1, 2015 16:38
Show Gist options
  • Save yannvr/5e45463f3da942d86e96 to your computer and use it in GitHub Desktop.
Save yannvr/5e45463f3da942d86e96 to your computer and use it in GitHub Desktop.
Iterate over localforage values
localforage.iterate(function(value, key, iterationNumber) {
// Resulting key/value pair -- this callback
// will be executed for every item in the
// database.
console.log([key, value]);
}, function(err) {
if (!err) {
console.log('Iteration has completed');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment