Created
December 1, 2017 06:03
-
-
Save spences10/efbbc0b7874aea9ee7f74ba2c317170f to your computer and use it in GitHub Desktop.
newArrayFromExisting created by spences10 - https://repl.it/@spences10/newArrayFromExisting
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 originalArray = [1, 2, 3]; | |
const newArray = originalArray.map(item => item * 2); | |
console.log(newArray); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment