Skip to main content
Version: v0.0.3

Function: childElements()

childElements(el): readonly Element[]

Return all direct child elements (any namespace), in document order. Used where the caller wants to enumerate structure without filtering by name.

Parameters

el

Element

Returns

readonly Element[]

Example

import { childElements } from "@cosyte/ccda";
const kids = childElements(el);