• Destroys a dom node. The node will be removed from its parent and its content will be cleared.

    Does nothing if node is null or undefined.

    Parameters

    • node: undefined | null | HTMLElement

      the dom node to destroy

    Returns void