UNPKG

@extra-array/intersection

Version:

Gives values present in both arrays.

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