removeChild Method

Removes children specified by id.

removeChild(parentId: string | undefined, childId: string): void

Parameter Type Description
parentId string | undefined id of parent node or undefined to remove root node.
childId string id of node that should be removed.

Returns - void

Defined in

Last Updated: 13 June, 2024