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

Method parent

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

* @internal

(t: T)

Source from the content-addressed store, hash-verified

22 * @internal
23 */
24 parent(t: T): T | null {
25 const p = this.pathFromRoot(t);
26 return p.length > 1 ? p[p.length - 2] : null;
27 }
28
29 /**
30 * @internal

Callers 1

tree.spec.tsFile · 0.45

Calls 1

pathFromRootMethod · 0.95

Tested by

no test coverage detected