MCPcopy Create free account
hub / github.com/angular/components / union

Function union

src/material/core/theming/tests/m3-theme.spec.ts:34–36  ·  view source on GitHub ↗
(...sets: Set<T>[])

Source from the content-addressed store, hash-verified

32}
33
34function union<T>(...sets: Set<T>[]): Set<T> {
35 return new Set(sets.flatMap(s => [...s]));
36}
37
38function intersection<T>(set: Set<T>, ...sets: Set<T>[]): Set<T> {
39 return new Set([...set].filter(i => sets.every(s => s.has(i))));

Callers 1

m3-theme.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected