Returns each element together with its ancestors, optionally filtered by name.
The source elements.
Optional
Optional name filter.
An array of elements.
Returns each element together with its ancestors, optionally filtered by name.