js-util

Home > rc-js-util > _Array > binaryIndexOf

_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:

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().