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