Created
          October 11, 2018 17:54 
        
      - 
      
- 
        Save wholypantalones/bff766156362b1722bc6ff5a7dd9eb2c to your computer and use it in GitHub Desktop. 
    JavaScript Async Map
  
        
  
    
      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
    
  
  
    
  | const arr = [ { key: 1 }, { key: 2 }, { key: 3 } ] | |
| const results = arr.map(async (obj) => { return obj.key; }); | |
| Promise.all(results).then((completed) => console.log('done', arr); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment