Function isDocument

  • Checks if node is a document node.

    Returns

    true if the node is a document node.

    Parameters

    • node: Node

      Node to check.

    Returns node is Document