UNPKG

@extra-array/difference

Version:

Gives values of array not present in another.

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