Es3 Edit [better] Here
(since ES3 arrays don’t have it either):
if (!Array.prototype.indexOf) Array.prototype.indexOf = function (searchElement, fromIndex) var i; for (i = (fromIndex ; es3 edit
// ES3-safe array iteration var arr = [1, 2, 3]; for (var i = 0; i < arr.length; i++) console.log(arr[i]); (since ES3 arrays don’t have it either): if (