findCommonAncestor
API / publicodes / utils / findCommonAncestor
function findCommonAncestor(dottedName1, dottedName2): string Defined in: packages/core/src/ruleUtils.ts:80
Experimental
Finds the common ancestor of two dottedName
Parameters
| Parameter | Type |
|---|---|
dottedName1 | string |
dottedName2 | string |
Returns
string