TIL
- to use
Array.prototype.some
andArray.prototype.every
, which will stop execution once the returned value istrue
orfalse
correspondingly
TIL
Array.prototype.some
and Array.prototype.every
, which will stop execution once the returned value is true
or false
correspondingly