removeDOMChildNodes = el => {

  for (let i = el.childNodes.length; i--;) {
    el.removeChild(el.childNodes[i]);
  }

}
Removes all child nodes of a DOM element. This includes element
and non-element objects.