If I remember correctly, older versions of Internet Explorer didn’t support the for..in statement.
I’ve no idea which versions though, and it’s not the easiest thing to Google.
According to Microsoft, it’s supported in Quirks Mode, and in standards mode from IE 6 onwards:
- http://msdn.microsoft.com/en-us/library/ie/55wb2d34(v=vs.94).aspx (“Requirements” section near the bottom)
Which version of Internet Explorer added support for this?
As far as I can remember, every browser ever supporting JS has had to have support
for ... inbecause until recently it was the only way to enumerate the keys of an object.