(parentElement, child)
| 6683 | return arr.join(";"); |
| 6684 | } |
| 6685 | function addChild(parentElement, child) { |
| 6686 | if (child === null || child === undefined || typeof child === "boolean") return; |
| 6687 | else if (Array.isArray(child)) appendChildren(parentElement, child); |
| 6688 | else if (isElement(child)) parentElement.appendChild(child); |
| 6689 | else parentElement.appendChild(document.createTextNode(child.toString())); |
| 6690 | } |
| 6691 | function appendChildren(parentElement, children) { |
| 6692 | children.forEach((child)=>addChild(parentElement, child)); |
| 6693 | } |
no test coverage detected