Could use `break` in loop?


#1

I would like to use break in forEache.
But don’t work


#2

There’s no break of execution in a forEach iteration. There are ugly hacks if you really must insist, but it is better to use a regular for loop or a for...of loop.


#3

Thanks for your reply :smile: