Skip to content

Instantly share code, notes, and snippets.

@geraldyeo
Created July 31, 2014 04:07
Show Gist options
  • Select an option

  • Save geraldyeo/d969f01b5f538b0e33fc to your computer and use it in GitHub Desktop.

Select an option

Save geraldyeo/d969f01b5f538b0e33fc to your computer and use it in GitHub Desktop.
Currying utility function
var currier = function(func){
var args = Array.prototype.slice.call(arguments, 1);
return function(){
return func.apply(this, args.concat(Array.prototype.slice.call(arguments, 0)));
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment