Metakit / @doeixd/metakit/graph/match
covers
function · packages/metakit/src/graph/match.ts:44
function covers(
cover: ReadonlyArray<string>,
candidate: ReadonlyArray<string>,
): booleanTrue when every concrete path candidate matches, cover matches too: a
segment of cover matches * or the same segment, and * in candidate
is covered only by * in cover (or by a shorter cover, a whole subtree).