Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"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
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
You can’t perform that action at this time.