Array.prototype.wtf = function() { } var s = new Array("1", "2", "3"); for (var i in s) { alert(i); }