(nodes: TestData[] = this._dataChange.getValue())
| 1624 | } |
| 1625 | |
| 1626 | getRecursiveData(nodes: TestData[] = this._dataChange.getValue()): TestData[] { |
| 1627 | return [ |
| 1628 | ...new Set(nodes.flatMap(parent => [parent, ...this.getRecursiveData(parent.children)])), |
| 1629 | ]; |
| 1630 | } |
| 1631 | |
| 1632 | clear() { |
| 1633 | this.data = []; |