Skip to content

Instantly share code, notes, and snippets.

@seanbollin
Created February 12, 2014 00:09
Show Gist options
  • Save seanbollin/8947219 to your computer and use it in GitHub Desktop.
Save seanbollin/8947219 to your computer and use it in GitHub Desktop.
Augmenting Types
Function.prototype.method = function(name, func) {
this.prototype[name] = func;
return this;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment