Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / array / sortedLastIndex.js
1 var createSortedIndex = require('../internal/createSortedIndex');
2
3 /**
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.
7  *
8  * @static
9  * @memberOf _
10  * @category Array
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
14  *  per iteration.
15  * @param {*} [thisArg] The `this` binding of `iteratee`.
16  * @returns {number} Returns the index at which `value` should be inserted
17  *  into `array`.
18  * @example
19  *
20  * _.sortedLastIndex([4, 4, 5, 5], 5);
21  * // => 4
22  */
23 var sortedLastIndex = createSortedIndex(true);
24
25 module.exports = sortedLastIndex;