Skip to content

Instantly share code, notes, and snippets.

@adambene
Last active January 20, 2017 01:23
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 adambene/484e9c0db61e550ab8514de657dd842c to your computer and use it in GitHub Desktop.
Save adambene/484e9c0db61e550ab8514de657dd842c to your computer and use it in GitHub Desktop.
Currying in JavaScript ES6 - papply
multiply = (n, m) => n * m
multiply(3, 4) === 12 // true
triple = (m) => multiply(3, m)
triple(4) === 12 // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment