Skip to content

Instantly share code, notes, and snippets.

@spences10
Created December 1, 2017 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spences10/efbbc0b7874aea9ee7f74ba2c317170f to your computer and use it in GitHub Desktop.
Save spences10/efbbc0b7874aea9ee7f74ba2c317170f to your computer and use it in GitHub Desktop.
newArrayFromExisting created by spences10 - https://repl.it/@spences10/newArrayFromExisting
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