Last active
June 9, 2018 00:42
-
-
Save OtavioBraga/45d3fbccdcf36e7db0177798c9d157ff 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
var myArray = [15,30,35] | |
const doubles = myArray.map(item => item * 2) | |
console.log(doubles) | |
// [30,60,70] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment