Javascript Array removeItem(item_)

Description

Javascript Array removeItem(item_)


Array.prototype.removeItem = function(item_) {
    var i = this.indexOf(item_);
    this.splice(i, 1);/*  w  w w  . j  a v  a 2s .c o m*/
};



PreviousNext

Related