0

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?

0 Answers0