Created
November 23, 2012 16:22
-
-
Save endel/4136334 to your computer and use it in GitHub Desktop.
Dangerous JavaScript
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
| Array.prototype.doSomething = function() {} | |
| var arr = ["10", "20", "30"]; | |
| for (key in arr) { | |
| console.log(key, arr[key]) | |
| } | |
| // 0 10 | |
| // 1 20 | |
| // 2 30 | |
| // doSomething function () {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment