isComponent
isComponent() is a runtime type guard for Ornata component constructors.
import { isComponent } from "ornata";Example
Section titled “Example”if (isComponent(value)) { value.mount(root);}When it helps
Section titled “When it helps”You will usually use isComponent() in framework internals, registries, or defensive bootstrap code.
It is especially useful when working with dynamic component maps or values from untyped boundaries.