js-util

Home > rc-js-util > ATypedArrayTuple > some

ATypedArrayTuple.some() method

Determines whether the specified callback function returns true for any element of an array.

Signature:

some(_callbackfn: (value: number, index: TExtractIndexes<this>, array: this) => boolean, _thisArg?: unknown): boolean;

Parameters

Parameter Type Description
_callbackfn (value: number, index: TExtractIndexes<this>, array: this) => boolean A function that accepts up to three arguments. The some method calls the _callbackfn function for each element in array1 until the _callbackfn returns true, 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