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

Опубликовано: 09 Январь 2025
на канале: procademy
744
24

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.

SOURCE CODE OF THIS SECTION CAN BE DOWNLOADED FROM HERE: https://drive.google.com/file/d/1qCLN...

SLIDES OF THIS SECTION CAN BE DOWNLOADED FROM HERE:
https://drive.google.com/file/d/19UCM...