Joined October 2017


joanllenas, you don't need a break in .forEach(). Because you use it as the name says — when you want your function to be executed against each element of array. If you want it to be executed only again some of them, there's a method called exactly like that — .some() (see Array.prototype.some).

1 Karma
0 Total ProTip Views