for-each-in loops are now deprecated

Published: | Categories: JavaScript


The for statement, introduced with JavaScript 1.6 as part of the ECMAScript for XML (E4X) support, is now considered deprecated and will be removed in the near future. Consider using the ECMAScript 6 for...of statement instead. Note that the E4X support itself has already been removed with Firefox 21 and this statement has been kept just for backward compatibility.

Update: The support for the statement has been removed with Firefox 57.