-
-
Save subtleGradient/269015 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
"app".foo(); // Fail. The method `foo` doesn't exist | |
require('commonjs_mod'); // Modifies the String native | |
"app".foo(); // no Fail. The method `foo` was added |
This file contains hidden or 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
String.prototype.foo = function(){ return "foo'd"; }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment