Installation
npm install --save @types/array-binarysearch.closest
Summary
This package contains type definitions for array-binarysearch.closest (https://www.npmjs.com/package/array-binarysearch.closest).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-binarysearch.closest.
index.d.ts
declare function binarySearch(
arr: readonly string[],
val: string,
): number;
declare function binarySearch(
arr: readonly number[],
val: number,
): number;
declare function binarySearch<T>(
arr: readonly T[],
val: T,
fn?: null | ((itm: T, val: T, m: any, arr: readonly T[]) => number),
ths?: any,
bgn?: number,
end?: number,
): number;
export = binarySearch;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:23 GMT
- Dependencies: none
Credits
These definitions were written by Heye Vöcking.