Sortedindexof

_.sortedIndexOf(array, value)

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

Arguments

array (Array): The array to inspect.
value (*): The value to search for.

Returns

(number): Returns the index of the matched value, else -1.

Example

Deep