Last active
May 27, 2018 10:43
-
-
Save WaldoJeffers/5cc6e892c72a185f7502f0b734550ff2 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 result = await Promise | |
.all(numbers.map(isEven))) | |
.then(results => numbers.filter((_, index) => results[index])) | |
// [4] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment