clearChildren Method
Removes all children for parent specified by id.
clearChildren(parentId: string): void
| Parameter | Type | Description | 
|---|---|---|
| parentId | string | id of parent node or undefined to remove root nodes. | 
Returns - void
Defined in
Last Updated: 28 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.