@extra-array/symmetric-difference
Version:
Gives values not present in both arrays.
13 lines (12 loc) • 486 B
TypeScript
declare module "@extra-array/symmetric-difference" {
import type { compareFn, mapFn } from "./_types";
/**
* Gives values not 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 symmetricDifference<T, U = T>(x: Iterable<T>, y: Iterable<T>, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): T[];
export = symmetricDifference;
//# sourceMappingURL=symmetricDifference.d.ts.map}