MCPcopy
hub / github.com/immutable-js/immutable-js / union

Method union

src/Set.js:44–49  ·  view source on GitHub ↗
(sets)

Source from the content-addressed store, hash-verified

42 }
43
44 static union(sets) {
45 sets = Collection(sets).toArray();
46 return sets.length
47 ? SetPrototype.union.apply(Set(sets.pop()), sets)
48 : emptySet();
49 }
50
51 toString() {
52 return this.__toString('Set {', '}');

Callers

nothing calls this directly

Calls 11

constructorMethod · 0.95
withMutationsMethod · 0.95
CollectionClass · 0.90
SetCollectionClass · 0.90
emptySetFunction · 0.85
forEachMethod · 0.80
SetClass · 0.70
toArrayMethod · 0.65
popMethod · 0.65
filterMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected