Javascript Array removeIndex(index)

Description

Javascript Array removeIndex(index)


Array.prototype.removeIndex = function(index) {
    // let index = this.indexOf(val);
    if (index > -1) {
        this.splice(index, 1);/*from  www.  j  ava 2s .c  o m*/
    }
};



PreviousNext

Related