isNode()
The isNode util is a type guard that returns true when a flow element is a
Node, narrowing its type for TypeScript.
import { isNode } from '@xyflow/vue';
const nodesOnly = elements.filter(isNode);Signature
Parameters:| Name | Type | Default |
|---|---|---|
element | unknownThe element to test. |
Notes
- See
isEdgefor the edge counterpart.