MCPcopy Index your code
hub / github.com/angular/components / getExpandedNodes

Function getExpandedNodes

src/cdk/tree/tree.spec.ts:1631–1633  ·  view source on GitHub ↗
(nodes: T[] | undefined, tree: CdkTree<T>)

Source from the content-addressed store, hash-verified

1629}
1630
1631function getExpandedNodes<T>(nodes: T[] | undefined, tree: CdkTree<T>): T[] {
1632 return nodes?.filter(node => tree.isExpanded(node)) ?? [];
1633}
1634
1635function expectFlatTreeToMatch(
1636 treeElement: Element,

Callers 1

tree.spec.tsFile · 0.85

Calls 2

isExpandedMethod · 0.65
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…