Skip to content

Instantly share code, notes, and snippets.

Created Jan 14, 2015
What would you like to do?
Function.prototype.bind = function (fn) {
var ret = function () {
return ret._fn.apply(fn);
ret.fn = this._fn || this;
return ret;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment