Which browsers other than Firefox support Array.forEach()? Mozilla say it’s an extension to the standard and I realise it’s trivial to add to the array prototype, I’m just wondering what other browsers support it?
Which browsers other than Firefox support Array.forEach()? Mozilla say it’s an extension to the
Share
The JavaScript article of Wikipedia lists the JS versions by browser. forEach is part of JavaScript 1.6. So it is supported indeed by most browsers, except Opera 9.02 (which I just tested). Opera 9.5 (which I just installed!) supports it, along with indexOf for Array.
Surprisingly, it is not official. I don’t see its support in the page ECMAScript support in Opera 9.5. Perhaps it is an overlook or perhaps only a partial support they don’t want to advertise.