basant307/AI_Governance_Project
045
1var baseSortedIndex = require('./_baseSortedIndex');2 3/**4 * Uses a binary search to determine the lowest index at which `value`5 * should be inserted into `array` in order to maintain its sort order.6 *7 * @static8 * @memberOf _9 * @since 0.1.010 * @category Array11 * @param {Array} array The sorted array to inspect.12 * @param {*} value The value to evaluate.13 * @returns {number} Returns the index at which `value` should be inserted14 * into `array`.15 * @example16 *17 * _.sortedIndex([30, 50], 40);18 * // => 119 */20function sortedIndex(array, value) {21 return baseSortedIndex(array, value);22}23 24module.exports = sortedIndex;25 