Determines whether the predicate function returns true for any element of a typed array.
some(predicate, thisArg?)
predicate function(value, index, array)
A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
thisArg? optional
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns true if a predicate returns true for any element, false otherwise.
new Uint8Array([4, 5, 6]).some(x => x % 2 === 0)
true
new Uint8Array([1, 3, 5]).some(x => x % 2 === 0)
false