Skip to content

ancestor

ancestor(name, pattern): string

Extracts an ancestor from the provided name, using a pattern for the ancestor.

string

string

string