Javascript Array rm(el)

Description

Javascript Array rm(el)


Array.prototype.rm = function (el) {
    var index = this.indexOf(el);
    this.splice(index, 1);/*from   ww  w  .java  2  s  .com*/

    return this.length;
};



PreviousNext

Related