for-each-in loops are now deprecated

Published: | Categories: JavaScript

Description

The for each...in 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.

References