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

This method is like _.sortedIndex except that it accepts iteratee which is invoked for value and each element of array to compute their sort ranking. The iteratee is invoked with one argument: (value).

Examples

var objects = [{ 'x': 4 }, { 'x': 5 }];

_.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); // => 0

// The _.property iteratee shorthand. _.sortedIndexBy(objects, { 'x': 4 }, 'x'); // => 0

Parameters

array

The sorted array to inspect.

value

The value to evaluate.

iteratee