Last active
January 27, 2019 11:58
-
-
Save flexaddicted/897cd0b8c2000ad7edb74ecf5a0c72d2 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
const doubles = [1, 2, 3, 4].myMap(function(number) { | |
return number * 2; | |
}); | |
// or using lambda | |
// const doubles = [1, 2, 3, 4].myMap(number => number * 2); | |
console.log(doubles); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment