blockly > utils > dom > removeNode
utils.dom.removeNode() function
Removes a node from its parent. No-op if not attached to a parent.
Signature:
export declare function removeNode(node: Node | null): Node | null;
Parameters
Parameter | Type | Description |
---|---|---|
node | Node | null | The node to remove. |
Returns:
Node | null
The node removed if removed; else, null.