Function replace

  • Replaces a child node with a new node, and updates the parent node and parent pointers

    Parameters

    • child: any
    • newChild: any

    Returns any

    The new child node or null if the child node was a root node

    Throws

    If the child node does not have a parent node set

Generated using TypeDoc