Skip to content

Instantly share code, notes, and snippets.

@tuan
Created June 14, 2016 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuan/b7669a5bf8b2f4b44bf299543c3c2a63 to your computer and use it in GitHub Desktop.
Save tuan/b7669a5bf8b2f4b44bf299543c3c2a63 to your computer and use it in GitHub Desktop.
function mapWith (fn) {
return (list) => {
return Array.prototype.map.call(
list,
(value) => fn.call(this, value))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment