4.17.11
3.10.1
2.4.2
1.3.1

_.sortedIndex(array, value)

Uses a binary search to determine the lowest index at which value should be inserted into array in order to maintain its sort order.

Since

0.1.0

Arguments

argument
array
value
type
Array
*
description
The sorted array to inspect.
The value to evaluate.

Returns

(array)

Example

_.sortedIndex([30, 50], 40);
// => 1
_.sortedIndex([30, 50], 40);
// => 1