Skip to main content
Modular Documentation
Guides
Reference
Reference
/
@modular/sdk/editor
isDOMShadowRoot
function
function isDOMShadowRoot(node: unknown): node is ShadowRoot
Import
import { isDOMShadowRoot } from '@modular/sdk/editor';
Notes
returns
True if node is a DOM ShadowRoot (an open or closed shadow tree root), false otherwise. A ShadowRoot is a DocumentFragment with a host.