Function prepend

  • prepend(elem: ChildNode, prev: ChildNode): void
  • Prepend an element before another.

    Parameters

    • elem: ChildNode

      The element to prepend before.

    • prev: ChildNode

      The element be added.

    Returns void