+ 2
foreach
Works not only with arrays. It works with all iterables, like ArrayObjects and generators.
1 ответ
0
for...in in javascript also works for arrays not only objects
Works not only with arrays. It works with all iterables, like ArrayObjects and generators.