JavaScript for, for...in, for...of, for-await...of difference All In One
for
for...in
for...of
for-await...of
Array
- forEach
- map
- filter
- reduce
- sort
...
The for each...in statement is deprecated as the part of ECMA-357 (E4X) standard. E4X support has been removed. Consider using for...of instead.
不赞成for ... in语句作为ECMA-357(E4X)标准的一部分。 E4X支持已被删除。考虑使用for ... of。