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

Function intersection

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

Source from the content-addressed store, hash-verified

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))));
40}
41
42/** Expects the given warning not to be reported in Sass. */
43function expectNoWarning(message: RegExp) {

Callers 1

m3-theme.spec.tsFile · 0.85

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected