Skip to content

Instantly share code, notes, and snippets.

@nathan-lapinski
Created June 4, 2018 08:44
Show Gist options
  • Save nathan-lapinski/e53dc8494c994ef04e10456dcd372419 to your computer and use it in GitHub Desktop.
Save nathan-lapinski/e53dc8494c994ef04e10456dcd372419 to your computer and use it in GitHub Desktop.
Simple demo of map
const arr = [1,2,3];
const mappedArr = arr.map(value => value + 1); // returns [2,3,4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment