mirror of
https://github.com/danbulant/console-hub
synced 2026-06-19 06:21:06 +00:00
Add utils
This commit is contained in:
parent
38aae4f425
commit
4149e2c868
1 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
|||
|
||||
function removeChildNodes(node){
|
||||
while (node.firstChild) {
|
||||
node.removeChild(node.firstChild);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
removeChildNodes
|
||||
}
|
||||
Loading…
Reference in a new issue