Function prevElementSibling

  • Returns the previous element sibling of a node.

    Parameters

    • elem: AnyNode

      The element to get the previous sibling of.

    Returns Element | null

    elem's previous sibling that is a tag, or null if there is no previous sibling.