Function prevElementSibling

  • prevElementSibling(elem: AnyNode): Element | null
  • Returns the previous element sibling of a node.

    Returns

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

    Parameters

    • elem: AnyNode

      The element to get the previous sibling of.

    Returns Element | null