diff --git a/html/utils.js b/html/utils.js index c801f2d..b0e6002 100644 --- a/html/utils.js +++ b/html/utils.js @@ -1,5 +1,9 @@ - +function removeChildNodes(node){ + while (node.firstChild) { + node.removeChild(node.firstChild); + } +} module.exports = { - + removeChildNodes } \ No newline at end of file