DEV Community

Discussion on: My Top 3 JavaScript Array Methods

Collapse
 
webdevinci profile image
webdevinci

The forEach has come up a lot. I'll throw a reminder in here of its performance hit (minor) and more-so, something people might not know is that the forEach is not truly Iterable... hence, continue and break statements don't work. Knowing that tidbit can determine when and when not to use the forEach.