Skip to content

Instantly share code, notes, and snippets.

@andredublin
Created May 17, 2016 00:42
Show Gist options
  • Save andredublin/7f6823e3015085cf2e3cbcd3328151ed to your computer and use it in GitHub Desktop.
Save andredublin/7f6823e3015085cf2e3cbcd3328151ed to your computer and use it in GitHub Desktop.
js map identity
var id = x => x
var xs = [1, 2, 3, 4, 5].map(id(x));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment