|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
568 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const differenceWith = require('./differenceWith.js');
|
|---|
| 6 | const intersectionWith = require('./intersectionWith.js');
|
|---|
| 7 | const unionWith = require('./unionWith.js');
|
|---|
| 8 |
|
|---|
| 9 | function xorWith(arr1, arr2, areElementsEqual) {
|
|---|
| 10 | const union = unionWith.unionWith(arr1, arr2, areElementsEqual);
|
|---|
| 11 | const intersection = intersectionWith.intersectionWith(arr1, arr2, areElementsEqual);
|
|---|
| 12 | return differenceWith.differenceWith(union, intersection, areElementsEqual);
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | exports.xorWith = xorWith;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.