Skip to content

Instantly share code, notes, and snippets.

@codemilli
Created March 5, 2017 07:25
Show Gist options
  • Save codemilli/e928fd69a0e4bd084568bb4638d61295 to your computer and use it in GitHub Desktop.
Save codemilli/e928fd69a0e4bd084568bb4638d61295 to your computer and use it in GitHub Desktop.
mappable functor
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