findDescendant
Returns the first element below the root that the match names, looking through body and detail at any depth, or undefined.
@internote/canvas-sdkOn this page
import { findDescendant } from '@internote/canvas-sdk';#Signature
<N extends NodeLike>(root: N | readonly N[], match: NodeMatch<N>): N | undefined#Parameters
rootA node, or a list of nodes.
matchWhich nodes count.
Declared in packages/canvas-sdk/src/environment/node-query.ts:226.