Array 'some' method in Javascript (Array.prototype.some)

preview_player
Показать описание
You can use the 'some' method on arrays in Javascript to check if at least one element in an array meets a certain test or condition.

In this video we check if an array contains at least one element with a value of over 100.

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

better than the videos on this topic that have more views.... by far! much simpler. thank you!

blowintrees
Автор

how can i see the actual value once it's found by the some method? I'd like to see not only that is true, but also the actual value, in your example the number greater than 100. Thanks in advance

alexyep
visit shbcf.ru