4 ms·
A bit about .forEach, .every, and .some
- TL_DR 11y agoAll 3 are array methods taking a function to call with an element (and its index and the array itself): forEach element without exception(pun!) for every element until a false is returned. Alternatively, the method itself returns true, or until some returns true. Alternatively, the method itself returns false.