MCPcopy
hub / github.com/shipshapecode/shepherd / appendChildren

Function appendChildren

shepherd.js/src/utils/dom.ts:50–58  ·  view source on GitHub ↗
(el: Element, children: Child[])

Source from the content-addressed store, hash-verified

48}
49
50function appendChildren(el: Element, children: Child[]) {
51 for (const child of children) {
52 if (child != null && child !== false) {
53 el.append(
54 typeof child === 'string' ? document.createTextNode(child) : child
55 );
56 }
57 }
58}

Callers 2

hFunction · 0.85
svgElFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected