What is Some and Every method in JavaScript | Array Methods | JavaScript

preview_player
Показать описание
In this lecture, you will learn about two new array methods in JavaScript which is some() and every() method. Thease methods returns a boolean value based on a given condition.

The some() method returns boolean value true if any one of the element of an array satisfies a given condition. If non of the element satisfies the given condition, it returns false.

The every() method returns a boolean value true if all the elements of an array satisfies a given condition. If any one element does not satisfy the condition, it will immediately return false.

Let's learn about some() and every method in detail in this lecture.

SLIDES OF THIS SECTION CAN BE DOWNLOADED FROM HERE:
Рекомендации по теме
Комментарии
Автор

Really good. I now see how helpful it is looking at vs code IntelliSense to understand what a function is returning.

russelldriver