UNPKG

@extra-array/has-value

Version:
13 lines (12 loc) 417 B
declare module "@extra-array/has-value" { import type { compareFn, mapFn } from "./_types"; /** * Checks if array has a value. * @param x an array * @param v value? * @param fc compare function (a, b) * @param fm map function (v, i, x) */ declare function hasValue<T, U = T>(x: Iterable<T>, v: T, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): boolean; export = hasValue; //# sourceMappingURL=hasValue.d.ts.map}