Skip to content

frontend-web-editor


Function: AreSiblings()

AreSiblings(node1, node2, nodes, edges): boolean

Defined in: utils/treeUtils.ts:841

Check if the provided nodes are siblings, check that they have a common parent node

Parameters

node1

Node

Node 1

node2

Node

Node 2

nodes

Node[]

List of current nodes

edges

Edge[]

List of current edges

Returns

boolean

boolean - True if common parent found