Function removeSubsets

  • Given an array of nodes, remove any member that is contained by another member.

    Parameters

    • nodes: AnyNode[]

      Nodes to filter.

    Returns AnyNode[]

    Remaining nodes that aren't contained by other nodes.