Skip to content

Instantly share code, notes, and snippets.

@matthewmorrone
Last active August 29, 2015 14:10
Show Gist options
  • Save matthewmorrone/f8f902b16568ed4737e5 to your computer and use it in GitHub Desktop.
Save matthewmorrone/f8f902b16568ed4737e5 to your computer and use it in GitHub Desktop.
define(Object.prototype, "define", {
enumerable: false,
configurable: true,
writable: true,
value: function(key, value) {
Object.defineProperty(Object.prototype, key, {
enumerable: false,
value: value
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment