lib/script.js
function clear (node) {
    const replace = node.cloneNode(false);
    node.parentNode.replaceChild(replace, node);
    return replace;
  }
function clear (node) {
    const replace = node.cloneNode(false);
    node.parentNode.replaceChild(replace, node);
    return replace;
  }
function clear ( node ) { const replace = node . cloneNode ( false ) ; node . parentNode . replaceChild ( replace , node ) ; return replace ; }
Clear a node's contents
@param  {object} node - obj to be emptied
Clear a node s contents