Function nextElementSibling

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

    Returns

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

    Parameters

    • elem: AnyNode

      The element to get the next sibling of.

    Returns Element | null