Created
January 30, 2012 00:45
-
-
Save specialunderwear/1701662 to your computer and use it in GitHub Desktop.
Change all prototypes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Object.prototype.i_am_everywhere = function() { | |
> return 'I am everywhere'; | |
> }; | |
> document.i_am_everywhere(); | |
'I am everywhere' | |
> var non_believer = "not here you're not!"; | |
> non_believer.i_am_everywhere(); | |
'I am everywhere' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment