Created
July 18, 2019 03:13
-
-
Save JulianSoto/cd7f81772550441e38787bf383320119 to your computer and use it in GitHub Desktop.
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
const func = async (arr) => { | |
let arrCopy = []; | |
arr.forEach(item => { | |
const newItem = someAsyncFunc(item); | |
arrCopy.push(newItem); | |
}); | |
return arrCopy; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment