Skip to content

Instantly share code, notes, and snippets.

@ntlk
Forked from threedaymonk/bind.js
Last active August 29, 2015 14:25
Show Gist options
  • Save ntlk/907cc882e7e6273c81d4 to your computer and use it in GitHub Desktop.
Save ntlk/907cc882e7e6273c81d4 to your computer and use it in GitHub Desktop.
if (!Function.prototype.bind) {
Function.prototype.bind = function bind(thisValue){
var func = this;
return function() {
return func.apply(thisValue, arguments);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment