Function prepend

  • Prepend an element before another.

    Parameters

    • elem: ChildNode

      The element to prepend before.

    • prev: ChildNode

      The element be added.

    Returns void