Skip to content

Instantly share code, notes, and snippets.

@chardos
Last active March 30, 2016 01:59
Show Gist options
  • Save chardos/6b110f3fffe5dfa7b9da to your computer and use it in GitHub Desktop.
Save chardos/6b110f3fffe5dfa7b9da to your computer and use it in GitHub Desktop.
var curriedAdd = function(a) {
return function(b) {
return a + b;
};
};
var addTen = curriedAdd(10)
console.log(addTen(5)) <= 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment