hasAncestor

source

hasAncestor(ancestor: string, descendant: string): booleansource