@tvkitchen/countertop
Version:
The entry point for developers who want to set up a TV Kitchen.
9 lines (8 loc) • 361 B
TypeScript
/**
* Find the index within a sorted array to which a given value could be inserted while
* still maintaining order.
*
* This takes in a function that will be called on array items in order to parse the sorted
* value.
*/
export declare const sortedIndexBy: <I, V>(sortedArray: I[], value: V, valueGetter: (x: I) => V, returnHighest?: boolean) => number;