Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Partial function application
function partial(func /*, 0..n args */) {
var args =, 1);
return function() {
var allArguments = args.concat(;
return func.apply(this, allArguments);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment