Skip to content

Instantly share code, notes, and snippets.

@javascripter
Created October 14, 2008 17:34
Show Gist options
  • Save javascripter/16749 to your computer and use it in GitHub Desktop.
Save javascripter/16749 to your computer and use it in GitHub Desktop.
Function.prototype.bind = function bind() {
var args = Array.slice(arguments),
thisObj = args.shift(),
self = this;
return function ()
self.apply(thisObj, args.concat(Array.slice(arguments)));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment