Skip to content

Instantly share code, notes, and snippets.

@tored
Last active October 11, 2015 13:48
Show Gist options
  • Save tored/3868196 to your computer and use it in GitHub Desktop.
Save tored/3868196 to your computer and use it in GitHub Desktop.
curry
function curry(fn) {
var slice = Array.prototype.slice,
args = slice.call(arguments).slice(1);
return function () {
return fn.apply(null, args.concat(slice.call(arguments)));
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment