1 var baseSortedIndex = require('./internal/baseSortedIndex');
4 * This method is like `_.sortedIndex` except that it returns the highest
5 * index at which `value` should be inserted into `array` in order to
6 * maintain its sort order.
11 * @param {Array} array The sorted array to inspect.
12 * @param {*} value The value to evaluate.
13 * @returns {number} Returns the index at which `value` should be inserted into `array`.
16 * _.sortedLastIndex([4, 5], 4);
19 function sortedLastIndex(array, value) {
20 return baseSortedIndex(array, value, true);
23 module.exports = sortedLastIndex;