(el: Element, children: Child[])
| 48 | } |
| 49 | |
| 50 | function 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 | } |