Javascript Some() Function

The some() function of array object returns true if at least one element in this array satisfies the provided testing function. Use it for example to check element exist in the array.

Syntax

Javascript Some() Function Example1

This will produce following result

Javascript Some() Function Example2

This will produce following result

Javascript Some Method Example3

This will produce following result