Function isDocument

  • Checks if node is a document node.

    Parameters

    • node: Node

      Node to check.

    Returns node is Document

    true if the node is a document node.