Returns the ancestors of every node in the array, optionally filtered by name.
The source nodes.
Optional
Optional name filter.
An array of ancestor elements.
Returns the ancestors of every node in the array, optionally filtered by name.