code: function emptyElement(element) {
  	  if (!is$1.element(element)) {
  	    return;
  	  }
  
  	  var length = element.childNodes.length;
  
  	  while (length > 0) {
  	    element.removeChild(element.lastChild);
  	    length -= 1;
  	  }
  	}
docs: Remove all child elements