mirror of
https://github.com/danbulant/console-hub
synced 2026-07-05 11:00:59 +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 = {
|
module.exports = {
|
||||||
|
removeChildNodes
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue