findDescendant

Returns the first element below the root that the match names, looking through body and detail at any depth, or undefined.

@internote/canvas-sdkFunction
On this page
import { findDescendant } from '@internote/canvas-sdk';

#Signature

<N extends NodeLike>(root: N | readonly N[], match: NodeMatch<N>): N | undefined

#Parameters

root
A node, or a list of nodes.
match
Which nodes count.

Declared in packages/canvas-sdk/src/environment/node-query.ts:226.

Last updated