rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
70 lines (33 loc) • 1.35 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [ATypedArrayTuple](./rc-js-util.atypedarraytuple.md) > [some](./rc-js-util.atypedarraytuple.some.md)
## ATypedArrayTuple.some() method
Determines whether the specified callback function returns true for any element of an array.
**Signature:**
```typescript
some(_callbackfn: (value: number, index: TExtractIndexes<this>, array: this) => boolean, _thisArg?: unknown): boolean;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
\_callbackfn
</td><td>
(value: number, index: [TExtractIndexes](./rc-js-util.textractindexes.md)<!-- --><this>, array: this) => boolean
</td><td>
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.
</td></tr>
<tr><td>
\_thisArg
</td><td>
unknown
</td><td>
_(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.
</td></tr>
</tbody></table>
**Returns:**
boolean