Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector. Mimics jquery.parentsUntil
Parameter | Type | Description |
---|---|---|
selector (optional) | string | Selection | null | A selector expression or object to match elements against. |
filter (optional) | string | null | A selector expression to filter matched elements. |
Returns
Type | Description |
---|---|
Selection | A Selection. |