Created
March 5, 2017 07:25
-
-
Save codemilli/e928fd69a0e4bd084568bb4638d61295 to your computer and use it in GitHub Desktop.
mappable functor
This file contains hidden or 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
var arr = [ 1, 2, 3, 4 ]; | |
var newArr = arr.map(x => x * 10); | |
console.log('arr => ', arr); | |
console.log('newArr => ', newArr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment