mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Bump to v3.6.0.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import baseCallback from '../internal/baseCallback';
|
||||
import binaryIndex from '../internal/binaryIndex';
|
||||
import binaryIndexBy from '../internal/binaryIndexBy';
|
||||
import createSortedIndex from '../internal/createSortedIndex';
|
||||
|
||||
/**
|
||||
* This method is like `_.sortedIndex` except that it returns the highest
|
||||
@@ -22,10 +20,6 @@ import binaryIndexBy from '../internal/binaryIndexBy';
|
||||
* _.sortedLastIndex([4, 4, 5, 5], 5);
|
||||
* // => 4
|
||||
*/
|
||||
function sortedLastIndex(array, value, iteratee, thisArg) {
|
||||
return iteratee == null
|
||||
? binaryIndex(array, value, true)
|
||||
: binaryIndexBy(array, value, baseCallback(iteratee, thisArg, 1), true);
|
||||
}
|
||||
var sortedLastIndex = createSortedIndex(true);
|
||||
|
||||
export default sortedLastIndex;
|
||||
|
||||
Reference in New Issue
Block a user