MCPcopy Create free account
hub / github.com/angular/angular / merge

Function merge

packages/core/src/sanitization/html_sanitizer.ts:25–33  ·  view source on GitHub ↗
(...sets: BooleanRecord[])

Source from the content-addressed store, hash-verified

23}
24
25function merge(...sets: BooleanRecord[]): BooleanRecord {
26 const res: BooleanRecord = Object.create(null);
27 for (const s of sets) {
28 for (const v in s) {
29 if (Object.hasOwn(s, v)) res[v] = true;
30 }
31 }
32 return res;
33}
34
35// Good source of info about elements and attributes
36// https://html.spec.whatwg.org/#semantics

Callers 9

html_sanitizer.tsFile · 0.85
rxjs.merge.spec.tsFile · 0.85
connectMethod · 0.85
connectMethod · 0.85
connectMethod · 0.85

Calls 1

createMethod · 0.65

Tested by

no test coverage detected