4.17.11
3.10.1
2.4.2
1.3.1

_.sortedIndexOf(array, value)

This method is like _.indexOf except that it performs a binary search on a sorted array.

Since

4.0.0

Arguments

argument
array
value
type
Array
*
description
The array to inspect.
The value to search for.

Returns

(array)

Example

_.sortedIndexOf([4, 5, 5, 5, 6], 5);
// => 1
_.sortedIndexOf([4, 5, 5, 5, 6], 5);
// => 1