@extra-array/union
Version:
Gives values present in any array.
13 lines (12 loc) • 415 B
TypeScript
declare module "@extra-array/union" {
import type { compareFn, mapFn } from "./_types";
/**
* Gives values present in any array.
* @param x an array
* @param y another array
* @param fc compare function (a, b)
* @param fm map function (v, i, x)
*/
declare function union<T, U = T>(x: T[], y: Iterable<T>, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): T[];
export = union;
//# sourceMappingURL=union.d.ts.map}