Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/sortedIndex.js";

Uses a binary search to determine the lowest index at which value should be inserted into array in order to maintain its sort order.

Examples

_.sortedIndex([30, 50], 40); // => 1

Parameters

array

The sorted array to inspect.

value

The value to evaluate.