Int32Array.prototype.every

Determines whether all the elements of a typed array satisfy the specified test.

Syntax

every(predicate, thisArg?)

Parameters

Return value

Returns true if for all the elements of array the predicate function returned a truthy value, false otherwise.

Examples

new Int32Array([2, 4, 6]).every(x => x % 2 == 0)
true

See also