fn
getRawChildren
Recursively extracts and flattens VNodes from potentially nested Fragments while filtering out Comment nodes. Local copy of the primitives helper to keep `@robonen/editor` self-contained.
Signature
ts
export function getRawChildren(children: VNode[]): VNode[]{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
children | VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>[] | Array of VNodes to process |
Returns
VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>[]Flattened array of non-Comment VNodes