Skip to content

Instantly share code, notes, and snippets.

@indongyoo
Created April 3, 2018 12:29
Show Gist options
  • Save indongyoo/7b0dc5d2b69706c99f4bb7a56af2c0e9 to your computer and use it in GitHub Desktop.
Save indongyoo/7b0dc5d2b69706c99f4bb7a56af2c0e9 to your computer and use it in GitHub Desktop.
(async function() {
const list = [1, 2, 3, 4];
const result = await map(async function(val) {
return await add2(val);
}, list);
console.log(result, 'async/await 3');
// [3, 4, 5, 6] async/await 3
}) ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment