MCPcopy Create free account
hub / github.com/d3/d3-array / union

Function union

src/union.js:3–11  ·  view source on GitHub ↗
(...others)

Source from the content-addressed store, hash-verified

1import {InternSet} from "internmap";
2
3export default function union(...others) {
4 const set = new InternSet();
5 for (const other of others) {
6 for (const o of other) {
7 set.add(o);
8 }
9 }
10 return set;
11}

Callers 1

union-test.jsFile · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected