Javascript Array removeObject(object)

Description

Javascript Array removeObject(object)


Array.prototype.removeObject = function(object){
    const index = this.indexOf(object)
    if (index >= 0) {
        this.splice(index,1);//from  w w w  . j a v a2  s  . c o  m
    }
}



PreviousNext

Related