4.17.11
3.10.1
2.4.2
1.3.1

_.sortedLastIndexOf(array, value)

This method is like _.lastIndexOf 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

_.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
// => 3
_.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
// => 3