1 | import type { compareFn, mapFn } from './_types';
|
2 | /**
|
3 | * Binary searches value in sorted array.
|
4 | * @param x an array (sorted)
|
5 | * @param v search value
|
6 | * @param fc compare function (a, b)
|
7 | * @param fm map function (v, i, x)
|
8 | * @returns index of value | ~(index of closest value)
|
9 | */
|
10 | declare function bsearchAny<T, U = T>(x: T[], v: T, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): number;
|
11 | export default bsearchAny;
|
12 | //# sourceMappingURL=index.d.ts.map |
\ | No newline at end of file |