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