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

ParameterType
dottedName1string
dottedName2string

Returns

string