Skip to content

Instantly share code, notes, and snippets.

@nicokruger
Created April 4, 2012 17:24
Show Gist options
  • Save nicokruger/2304020 to your computer and use it in GitHub Desktop.
Save nicokruger/2304020 to your computer and use it in GitHub Desktop.
Partial apply
var _ = require("underscore");
var f = function () {
console.log(JSON.stringify(_.toArray(arguments)));
}
f.apply(null, [1,2,3]);
var h =Function.prototype.bind.apply(f, [null, 1,2,3])
h();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment