sortedLastIndexOf
_.sortedLastIndexOf(value, array)
# Ⓢ [Ⓣ][1] Ⓝ
This method is like _.lastIndexOf except that it performs a binary
search on a sorted array.
Since
4.0.0
Arguments
value(*): The value to search for.array(Array): The array to inspect.
Returns
(number): Returns the index of the matched value, else -1.
Example
_.sortedLastIndexOf(5, [4, 5, 5, 5, 6]);
// => 3