Nodejs HTML Element Remove remove()

Here you can find the source of remove()

Method Source Code

Element.prototype.remove = function() {
  this.parentElement.removeChild(this);/*from  ww w  .j  a va 2 s  . c o m*/
}

Related

  1. remove()
    Element.prototype.remove = function() {
        this.parentElement.removeChild(this);
    
  2. remove()
    Element.prototype.remove = function ()
        this.parentElement.removeChild(this);
    };
    
  3. remove(element)
    HTMLElement.prototype.remove = function(element){
        this.removeChild(element);
    };
    NodeList.prototype.forEach = function(obj, func){
        Array.prototype.forEach.call(obj, func(x));
    };
    
  4. removeChildren()
    Element.prototype.removeChildren = function() {
        while (this.firstChild)
            this.removeChild(this.firstChild);
    };