Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
create_router_state.spec.ts
File · 0.45
tree.spec.ts
File · 0.45
Calls
1
findNode
Function · 0.85
Tested by
no test coverage detected