source: node_modules/es-toolkit/dist/array/xorBy.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 498 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const differenceBy = require('./differenceBy.js');
6const intersectionBy = require('./intersectionBy.js');
7const unionBy = require('./unionBy.js');
8
9function xorBy(arr1, arr2, mapper) {
10 const union = unionBy.unionBy(arr1, arr2, mapper);
11 const intersection = intersectionBy.intersectionBy(arr1, arr2, mapper);
12 return differenceBy.differenceBy(union, intersection, mapper);
13}
14
15exports.xorBy = xorBy;
Note: See TracBrowser for help on using the repository browser.