1 var baseSortedIndex = require('./_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.
12 * @param {Array} array The sorted array to inspect.
13 * @param {*} value The value to evaluate.
14 * @returns {number} Returns the index at which `value` should be inserted
18 * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
21 function sortedLastIndex(array, value) {
22 return baseSortedIndex(array, value, true);
25 module.exports = sortedLastIndex;