Skip to content

Instantly share code, notes, and snippets.

@JamieMason
Last active September 26, 2015 14:28
Show Gist options
  • Save JamieMason/1111439 to your computer and use it in GitHub Desktop.
Save JamieMason/1111439 to your computer and use it in GitHub Desktop.
Simple partial application without binding
function partial(fn) {
var fixed = [].slice.call(arguments, 1);
return function() {
return fn.apply(this, fixed.concat([].slice.call(arguments, 0)));
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment