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

Method firstChild

packages/router/src/utils/tree.ts:40–43  ·  view source on GitHub ↗

* @internal

(t: T)

Source from the content-addressed store, hash-verified

38 * @internal
39 */
40 firstChild(t: T): T | null {
41 const n = findNode(t, this._root);
42 return n && n.children.length > 0 ? n.children[0].value : null;
43 }
44
45 /**
46 * @internal

Callers 2

tree.spec.tsFile · 0.45

Calls 1

findNodeFunction · 0.85

Tested by

no test coverage detected