From 99c1d9af689e5325f3cf535c4007b3aeb8325229 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 10 Jan 2023 14:54:04 +0100 Subject: Update - This is an automated commit --- school/node_modules/lodash/sortedIndex.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 school/node_modules/lodash/sortedIndex.js (limited to 'school/node_modules/lodash/sortedIndex.js') diff --git a/school/node_modules/lodash/sortedIndex.js b/school/node_modules/lodash/sortedIndex.js new file mode 100644 index 0000000..e763473 --- /dev/null +++ b/school/node_modules/lodash/sortedIndex.js @@ -0,0 +1,24 @@ +var baseSortedIndex = require('./_baseSortedIndex'); + +/** + * Uses a binary search to determine the lowest index at which `value` + * should be inserted into `array` in order to maintain its sort order. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. + * @example + * + * _.sortedIndex([30, 50], 40); + * // => 1 + */ +function sortedIndex(array, value) { + return baseSortedIndex(array, value); +} + +module.exports = sortedIndex; -- cgit