Skip to content

Instantly share code, notes, and snippets.

@OtavioBraga
Last active June 9, 2018 00:42
Show Gist options
  • Save OtavioBraga/45d3fbccdcf36e7db0177798c9d157ff to your computer and use it in GitHub Desktop.
Save OtavioBraga/45d3fbccdcf36e7db0177798c9d157ff to your computer and use it in GitHub Desktop.
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