1 var baseSortedIndex = require('./_baseSortedIndex');
4 * Uses a binary search to determine the lowest index at which `value` should
5 * be inserted into `array` in order to maintain its sort order.
10 * @param {Array} array The sorted array to inspect.
11 * @param {*} value The value to evaluate.
12 * @returns {number} Returns the index at which `value` should be inserted into `array`.
15 * _.sortedIndex([30, 50], 40);
18 * _.sortedIndex([4, 5], 4);
21 function sortedIndex(array, value) {
22 return baseSortedIndex(array, value);
25 module.exports = sortedIndex;