Created
April 16, 2018 01:31
-
-
Save aidanbon/1c83a73d547d84c045e2343a4a4ea575 to your computer and use it in GitHub Desktop.
sequentialExecutor
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 sequentialExecutor(arr) { | |
const resArr = [] | |
for (const func of arr) { | |
const res = await func() | |
resArr.push(res) | |
} | |
return resArr | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment