Int32Array.prototype.some

Determines whether the predicate function returns true for any element of a typed array.

Syntax

some(predicate, thisArg?)

Parameters

Return value

Returns true if a predicate returns true for any element, false otherwise.

Example

new Int32Array([4, 5, 6]).some(x => x % 2 === 0)
true
new Int32Array([1, 3, 5]).some(x => x % 2 === 0)
false

See also