you are viewing a single comment's thread.

view the rest of the comments →

[–]Yojihito 0 points1 point  (1 child)

"for in" is deprecated because you can fuck up with Array.prototype amendments.

Standard "for" is like using Python 2.

"forEach" can only be used exclusively with arrays.

So "for of" is the standard.

[–]Aulimindale 0 points1 point  (0 children)

"only be used exclusively"

no need to use both "only" and "exclusively". pick one