some() method tests whether at least one element in the array passes the test implemented by the provided function.
syntax ↴
some(callbackFn) A function to execute for each element in the array ↴
function is called with the following arguments ↴
some(function(element, index, array), thisArg) ↴
callback function allows access to each element, the index, and the original array itself.
thisArg (optional). Value to use as this when executing callbackFn. By default, it is undefined.
some() method returns true immediately if the provided function returns a truthy value for one of the array elements.
some() method returns false if the provided function returns a falsy value for all of the array elements.
some() method does not execute the function for empty array elements.
some() method does not change the original array.
myArray.some(callbackFn)