Function structurallyEqual

  • Returns whether two nodes are structurally equivalent.

    If two elements are structurally equivalent, they must also semantically equivalent. However, two semantically equivalent elements might not be structurally equivalent (e.g. /[ab]/ !=struct /[ba]/).

    Parameters

    • x: null | Node
    • y: null | Node

    Returns boolean