DEV Community

Discussion on: Which Array Function When?

Collapse
 
hultberg profile image
Edvin Hultberg

Why forEach, what about for...of and for...in ?

Collapse
 
andrew565 profile image
Andrew Steele

I included forEach here because this article was specifically about the iterator functions built into the Array object. for...of and for...in are super great tools, too, but were out of scope for this article. Will definitely include in the larger piece I'm working on writing. ;)