Designly
Aug 11, 2023

There are very few cases where I want to use forEach. For is almost always the way to go. Also, although these “hacks” work, it is very likely they are bugs and not features and shouldn’t be used in practice. Future versions of JavaScript may end up breaking your code.

Designly
Designly

Written by Designly

Full-stack web developer and graphics designer.

No responses yet