Function prependChild

  • Prepend a child to an element.

    Parameters

    • parent: ParentNode

      The element to prepend before.

    • child: ChildNode

      The element to be added as a child.

    Returns void