Created
June 4, 2018 08:44
-
-
Save nathan-lapinski/e53dc8494c994ef04e10456dcd372419 to your computer and use it in GitHub Desktop.
Simple demo of map
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 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