Created
March 8, 2019 15:13
-
-
Save awto/896f470788f2b1d7dddf13e25e1e35f0 to your computer and use it in GitHub Desktop.
Join Async
This file contains 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 join(input) { | |
const output = []; | |
for(const i of input) | |
output.push(await i); | |
return [...output]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment