empty(element) {
    if (element) {
      while (element.firstChild) {
        element.removeChild(element.firstChild);
      }
    }
  }
Empty's an HTML DOM element.
@param {HTMLElement} element - The element you wish to empty.