Skip to content

Instantly share code, notes, and snippets.

@valueof
Created October 11, 2011 23:22
Show Gist options
  • Save valueof/1279782 to your computer and use it in GitHub Desktop.
Save valueof/1279782 to your computer and use it in GitHub Desktop.
Array.prototype.join = function () {
return "LOL, UMAD?";
};
(function () {
"use built-ins";
console.log(['Hello', 'World'].join(', ')); // Hello, World
}());
['Hello', 'World'].join(', '); // LOL, UMAD?
@SlexAxton
Copy link

I think you get nearly the same browser coverage as that would get with pulling real builtins out of __proto__

@valueof
Copy link
Author

valueof commented Oct 11, 2011

:-) Well, I can at least dream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment