containsNode

Returns whether a node the match names is anywhere in the root's body or detail, at any depth.

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

#Signature

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

#Parameters

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

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

Last updated