@extra-array/search-value-right
Version:
Finds last index of a value.
14 lines (13 loc) • 491 B
TypeScript
declare module "@extra-array/search-value-right" {
import type { compareFn, mapFn } from "./_types";
/**
* Finds last index of a value.
* @param x an array
* @param v search value
* @param fc compare function (a, b)
* @param fm map function (v, i, x)
* @returns index of value, -1 if not found
*/
declare function searchValueRight<T, U = T>(x: T[], v: T, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): number;
export = searchValueRight;
//# sourceMappingURL=searchValueRight.d.ts.map}