Skip to content

Instantly share code, notes, and snippets.

@Aetet
Created February 27, 2014 20:55
Show Gist options
  • Save Aetet/9259336 to your computer and use it in GitHub Desktop.
Save Aetet/9259336 to your computer and use it in GitHub Desktop.
JS Snippet
var curry = function (fn) {
var args = [].slice.call(arguments, 1);
return function () {
return fn.apply(this, args.concat([].slice.call(arguments)));
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment