firstNodeOf

Returns the first mark the match names, cue wrappers unwrapped, or undefined.

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

#Signature

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

#Parameters

children
An environment's children.
match
Which nodes count.

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

Last updated