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.
21 lines (11 loc) • 752 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [\_Array](./rc-js-util._array.md) > [binaryIndexOf](./rc-js-util._array.binaryindexof.md)
## \_Array.binaryIndexOf property
Performs a bisection search of an 'indexable' object, i.e. can be accessed by index, for example `Array`<!-- -->. Custom data structures are also supported.
**Signature:**
```typescript
static readonly binaryIndexOf: typeof arrayBinaryIndexOf;
```
## Remarks
The `indexable` parameter must be sorted ascending. Where there are multiple equal values the lowest index will be returned.
See [arrayBinaryIndexOf()](./rc-js-util.arraybinaryindexof.md)<!-- -->.