Skip to content

Instantly share code, notes, and snippets.

@wkronemeijer
Last active December 27, 2015 06:28
Show Gist options
  • Save wkronemeijer/7281250 to your computer and use it in GitHub Desktop.
Save wkronemeijer/7281250 to your computer and use it in GitHub Desktop.
save three keystrokes every time
function method(obj, func) {
if (func.name !== "" && func.name !== 'anonymous') {
obj.prototype[func.name] = func;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment