Files
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

23 lines
350 B
JavaScript

"use strict";
exports.__esModule = true;
exports.default = clear;
/**
* Removes all child nodes from a given node.
*
* @param node the node to clear
*/
function clear(node) {
if (node) {
while (node.firstChild) {
node.removeChild(node.firstChild);
}
return node;
}
return null;
}
module.exports = exports["default"];