UNPKG

supergeneric

Version:

Supergeneric JS helper functions... formatters, math functions, sort functions, etc.

5 lines (4 loc) 146 B
export declare const binarySearch: <T>(values?: T[], by?: (item: T) => any) => (target?: any) => { item: T; index: number; } | undefined;