ltxmlts
    Preparing search index...

    Function ancestors

    • Returns the ancestors of every node in the array, optionally filtered by name.

      Parameters

      • nodes: XNode[]

        The source nodes.

      • Optionalname: string | XName

        Optional name filter.

      Returns XElement[]

      An array of ancestor elements.