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

Method pathFromRoot

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

* @internal

(t: T)

Source from the content-addressed store, hash-verified

57 * @internal
58 */
59 pathFromRoot(t: T): T[] {
60 return findPath(t, this._root).map((s) => s.value);
61 }
62}
63
64// DFS for the node matching the value

Callers 2

parentMethod · 0.95
tree.spec.tsFile · 0.45

Calls 2

findPathFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected