Javatpoint Logo
Javatpoint Logo

JavaScript TypedArray some() Method

The JavaScript some() method examines the elements of the array if they are satisfied on the given condition or not. The condition is checked by the argument function.

Syntax:

Parameters:

Array: Thet array where the some() method is called.

Index: index of the current value being processed by the method.

Value: The value of the current element.

ThisValue: The value to be given to the method used as this value.

Return value:

It returns true value if the elements of the array pass the condition. If the elements not satisfy the condition then it return false.

Browser Support:

Chrome Yes
Safari Yes
Firefox Yes
Opera Yes

Example 1

JavaScript TypedArray some() Method.

Test it Now

Output:

True

Example 2

JavaScript TypedArray some() Method.

Test it Now

Output:

false





Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA