Skip to main content

$getCommonAncestorResultBranchOrder

function

Return the ordering of siblings in a CommonAncestorResultBranch

function $getCommonAncestorResultBranchOrder<A extends LexicalNode, B extends LexicalNode>(compare: CommonAncestorResultBranch<A, B>): -1 | 1

Import

import { $getCommonAncestorResultBranchOrder } from '@modular/sdk/editor';