@modern-kit/utils
Version:
16 lines (13 loc) • 388 B
JavaScript
import { union } from '../union/index.mjs';
import { difference } from '../difference/index.mjs';
import { intersection } from '../intersection/index.mjs';
import '../uniq/index.mjs';
function xor(arr1, arr2, iteratee) {
return difference(
union(arr1, arr2, iteratee),
intersection(arr1, arr2, iteratee),
iteratee
);
}
export { xor };
//# sourceMappingURL=index.mjs.map