Created
April 3, 2018 12:29
-
-
Save indongyoo/7b0dc5d2b69706c99f4bb7a56af2c0e9 to your computer and use it in GitHub Desktop.
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
(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