source: node_modules/victory-vendor/lib-vendor/d3-array/src/disjoint.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: 555 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = disjoint;
7var _index = require("../../../lib-vendor/internmap/src/index.js");
8function disjoint(values, other) {
9 const iterator = other[Symbol.iterator](),
10 set = new _index.InternSet();
11 for (const v of values) {
12 if (set.has(v)) return false;
13 let value, done;
14 while (({
15 value,
16 done
17 } = iterator.next())) {
18 if (done) break;
19 if (Object.is(v, value)) return false;
20 set.add(value);
21 }
22 }
23 return true;
24}
Note: See TracBrowser for help on using the repository browser.