@types/array-binarysearch.closest
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/array-binarysearch.closest

Weekly Downloads

170

Version

0.2.4

License

MIT

Unpacked Size

3.5 kB

Total Files

5

Last publish

Collaborators

  • types