Skip to content

Instantly share code, notes, and snippets.

@laser
Created December 31, 2014 18:30
Show Gist options
  • Save laser/f60172b8037f9f19adfb to your computer and use it in GitHub Desktop.
Save laser/f60172b8037f9f19adfb to your computer and use it in GitHub Desktop.
j
function partial(fx) {
var firstArgs = Array.prototype.slice.call(arguments, 1);
return function fx2() {
var secondArgs = Array.prototype.slice.call(arguments, 0);
return fx.apply(null, firstArgs.concat(secondArgs));
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment