Function replaceElement

  • replaceElement(elem: ChildNode, replacement: ChildNode): void
  • Replace an element in the dom

    Parameters

    • elem: ChildNode

      The element to be replaced

    • replacement: ChildNode

      The element to be added

    Returns void