MCPcopy Index your code
hub / github.com/angular/angular / hasNodes

Function hasNodes

packages/private/testing/matchers/index.ts:195–198  ·  view source on GitHub ↗
(n: any)

Source from the content-addressed store, hash-verified

193
194function elementText(n: any): string {
195 const hasNodes = (n: any) => {
196 const children = n.childNodes;
197 return children && children.length > 0;
198 };
199
200 if (n instanceof Array) {
201 return n.map(elementText).join('');

Callers 1

elementTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…