I\'ve been fiddling with this for a while but it won\'t work and I can\'t figure out why. Please help. Here is what I have:
const destroy = container => { document.getElementById(container).innerHTML = ''; };
Faster previous
const destroyFast = container => { const el = document.getElementById(container); while (el.firstChild) el.removeChild(el.firstChild); };