1 var baseIteratee = require('./internal/baseIteratee'),
2 baseSortedIndexBy = require('./internal/baseSortedIndexBy');
5 * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
6 * which is invoked for `value` and each element of `array` to compute their
7 * sort ranking. The iteratee is invoked with one argument: (value).
12 * @param {Array} array The sorted array to inspect.
13 * @param {*} value The value to evaluate.
14 * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
15 * @returns {number} Returns the index at which `value` should be inserted into `array`.
18 * // using the `_.property` iteratee shorthand
19 * _.sortedLastIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x');
22 function sortedLastIndexBy(array, value, iteratee) {
23 return baseSortedIndexBy(array, value, baseIteratee(iteratee), true);
26 module.exports = sortedLastIndexBy;