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