function removeAllChildren(element) { // eslint-disable-line no-unused-vars

  while (element.hasChildNodes()) {
    element.removeChild(element.lastChild);
  }
}
/**
  * This function will iteratively remove every html element attached to the 'element' node
  */
This function will iteratively remove every html element attached to the 'element' node
This function will iteratively remove every html element attached to the ' element ' node
function removeAllChildren(element) { 
  while (element.hasChildNodes()) {
    element.removeChild(element.lastChild);
  }
}
function removeAllChildren ( element ) { while ( element . hasChildNodes ( ) ) { element . removeChild ( element . lastChild ) ; } }
This function will iteratively remove every html element attached to the 'element' node
This function will iteratively remove every html element attached to the ' element ' node
// eslint-disable-line no-unused-vars