Created
          December 1, 2015 16:38 
        
      - 
      
- 
        Save yannvr/5e45463f3da942d86e96 to your computer and use it in GitHub Desktop. 
    Iterate over localforage values
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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