(nodes: TestData[] = this._dataChange.getValue())
| 1613 | } |
| 1614 | |
| 1615 | getRecursiveData(nodes: TestData[] = this._dataChange.getValue()): TestData[] { |
| 1616 | return [ |
| 1617 | ...new Set(nodes.flatMap(parent => [parent, ...this.getRecursiveData(parent.children)])), |
| 1618 | ]; |
| 1619 | } |
| 1620 | |
| 1621 | clear() { |
| 1622 | this.data = []; |