I have this:
let elem = document.querySelector('#some-element');
elem.parentNode.removeChild(elem);
seems superfluous...is there not a method on element to remove itself from the DOM?
I have this:
let elem = document.querySelector('#some-element');
elem.parentNode.removeChild(elem);
seems superfluous...is there not a method on element to remove itself from the DOM?