Home > rc-js-util > ATypedArrayTuple > every
Determines whether all the members of an array satisfy the specified test.
Signature:
every(_callbackfn: (value: number, index: TExtractIndexes<this>, array: this) => boolean, _thisArg?: unknown): boolean;
Parameter | Type | Description |
---|---|---|
_callbackfn | (value: number, index: TExtractIndexes<this>, array: this) => boolean | A function that accepts up to three arguments. The every method calls the _callbackfn function for each element in array1 until the _callbackfn returns false, or until the end of the array. |
_thisArg | unknown | (Optional) An object to which the this keyword can refer in the _callbackfn function. If _thisArg is omitted, undefined is used as the this value. |
Returns:
boolean