DEV Community

Discussion on: My Top 3 JavaScript Array Methods

 
berniwittmann profile image
Bernhard Wittmann • Edited

Ah I'm sorry I understood you wrong. I thought you meant skipping an element like continue. You meant completely stop after a certain element. This is currently not possible with forEach, but you could use for (obj of array) or some instead to achieve that behavior
Sorry again for the misunderstanding