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.
19 lines (10 loc) • 692 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) > [binaryFindInsertionIndex](./rc-js-util._array.binaryfindinsertionindex.md)
## \_Array.binaryFindInsertionIndex property
Performs a bisection search of an 'indexable' object such that if the value were inserted, it would remain in order.
**Signature:**
```typescript
static readonly binaryFindInsertionIndex: typeof arrayBinaryFindInsertionIndex;
```
## Remarks
The `indexable` parameter must be sorted ascending. Where there are multiple equal values the lowest index will be returned.