MCPcopy Create free account
hub / github.com/breck7/scroll / difference

Function difference

external/.d3.js:1301–1309  ·  view source on GitHub ↗
(values, ...others)

Source from the content-addressed store, hash-verified

1299}
1300
1301function difference(values, ...others) {
1302 values = new InternSet(values);
1303 for (const other of others) {
1304 for (const value of other) {
1305 values.delete(value);
1306 }
1307 }
1308 return values;
1309}
1310
1311function disjoint(values, other) {
1312 const iterator = other[Symbol.iterator](), set = new InternSet();

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected