tomayac’s avatartomayac’s Twitter Archive—№ 21,294

  1. …in reply to @1Marc
    @1Marc Is… export const emptyElement = el => { while (el.hasChildNodes()) { el.removeChild(el.lastChild); } } …faster than setting the innerHTML to an empty string?