* Remove this node from the tree.
()
| 746 | * Remove this node from the tree. |
| 747 | */ |
| 748 | public remove(): this { |
| 749 | const current = this.parent(); |
| 750 | if (current === null) { |
| 751 | return this; |
| 752 | } |
| 753 | |
| 754 | current.removeChild(this); |
| 755 | this.parent(null); |
| 756 | return this; |
| 757 | } |
| 758 | |
| 759 | /** |
| 760 | * Rearrange this node in relation to its siblings. |
no test coverage detected