MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / intersect

Method intersect

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

Source from the content-addressed store, hash-verified

35 }
36
37 static intersect(sets) {
38 sets = Collection(sets).toArray();
39 return sets.length
40 ? SetPrototype.intersect.apply(Set(sets.pop()), sets)
41 : emptySet();
42 }
43
44 static union(sets) {
45 sets = Collection(sets).toArray();

Callers

nothing calls this directly

Calls 13

withMutationsMethod · 0.95
CollectionClass · 0.90
SetCollectionClass · 0.90
emptySetFunction · 0.85
forEachMethod · 0.80
everyMethod · 0.80
SetClass · 0.70
toArrayMethod · 0.65
popMethod · 0.65
mapMethod · 0.65
includesMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected