lowerBound MethodProtected

Computes the position at which the specified key should be inserted to maintain sorted order.

lowerBound(key: K): object

Parameter Type Description
key K The key whose position is to be computed.

Returns - an object with 'index' corresponding to the computed position and 'equal' set to true if an equivalent key already exists at that index.

Defined in

Last Updated: 08 January, 2020