Function contains

  • Returns true if other is an inclusive descendant of node, and false otherwise.

    Parameters

    • node: Node
    • other: null | Node

    Returns boolean