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.