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

Function countPopulated

packages/core/test/sanitization/html_sanitizer_spec.ts:309–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307 // For each parse, how many of the earlier inert trees still have content.
308 const populatedAtParse: number[] = [];
309 const countPopulated = () => inertRoots.filter((root) => root.firstChild).length;
310
311 if (isDOMParserAvailable()) {
312 const parseFromString = DOMParser.prototype.parseFromString;

Callers 1

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected