Skip to content

Instantly share code, notes, and snippets.

@micheleriva
Last active February 15, 2019 16:43
Show Gist options
  • Save micheleriva/bd879c505605362e1141438adb3d45df to your computer and use it in GitHub Desktop.
Save micheleriva/bd879c505605362e1141438adb3d45df to your computer and use it in GitHub Desktop.
const arr = [0, 1, 2, 3, 4, 5]
const newArray = arr.map((number) => number * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment