hasAttr

Returns whether the node writes the attribute at all, whatever its value.

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

#Signature

(node: NodeLike, identifier: string): boolean

#Parameters

node
The node to read.
identifier
The attribute's canonical name.

Declared in packages/canvas-sdk/src/environment/node-attributes.ts:66.

Last updated