Skip to content

Instantly share code, notes, and snippets.

@kevin-shu
Last active December 16, 2015 21:38
Show Gist options
  • Save kevin-shu/5500722 to your computer and use it in GitHub Desktop.
Save kevin-shu/5500722 to your computer and use it in GitHub Desktop.
function currying(fn) {
var store_args = Array.prototype.slice.call(arguments,1);
return function () {
args = store_args.concat(Array.prototype.slice.call(arguments));
return fn.apply(null, args);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment