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