Function removeSubsets

  • removeSubsets(nodes: AnyNode[]): AnyNode[]
  • Given an array of nodes, remove any member that is contained by another member.

    Returns

    Remaining nodes that aren't contained by other nodes.

    Parameters

    • nodes: AnyNode[]

      Nodes to filter.

    Returns AnyNode[]