Array prototype some and Array prototype every

Опубликовано: 31 Март 2026
на канале: CodeWithEbrahim
8
1

Array.prototype.every() is used for checking every element of an array returns true base on the function. whether just one element returned false, the result would be false.

Array.prototype.some() is used for checking some elements of an array return true based on the function. whether each element returned false, the result would be false.

https://www.instagram.com/p/CdWhvUSrH...