Function prependChild

  • prependChild(elem: Element, child: ChildNode): void
  • Prepend a child to an element.

    Parameters

    • elem: Element

      The element to prepend before.

    • child: ChildNode

      The element to be added as a child.

    Returns void