BOC v1.0: RS256 auth, Ledger integration, Prometheus metrics, CI/CD, backup
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Removes all child nodes from a given node.
|
||||
*
|
||||
* @param node the node to clear
|
||||
*/
|
||||
export default function clear(node) {
|
||||
if (node) {
|
||||
while (node.firstChild) {
|
||||
node.removeChild(node.firstChild);
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user