Skip to main content
Modular Documentation
Guides
Reference
Reference
/
@modular/sdk/editor
$isRootOrShadowRoot
function
Returns true if the given node is a RootNode or a ShadowRootNode.
function $isRootOrShadowRoot(node: null | LexicalNode): node is RootNode | ShadowRootNode
Import
import { $isRootOrShadowRoot } from '@modular/sdk/editor';