1 var createSortedIndex = require('../internal/createSortedIndex');
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 * @param {Function|Object|string} [iteratee=_.identity] The function invoked
15 * @param {*} [thisArg] The `this` binding of `iteratee`.
16 * @returns {number} Returns the index at which `value` should be inserted
20 * _.sortedLastIndex([4, 4, 5, 5], 5);
23 var sortedLastIndex = createSortedIndex(true);
25 module.exports = sortedLastIndex;