Javascript Array removeItemAt(index)

Description

Javascript Array removeItemAt(index)


Array.prototype.removeItemAt = function(index) {
    var me = this;
    if (me.length > index) {
        me[index] = null;/*ww  w.  ja  va2  s.  c  o  m*/
        me.splice(index,1);
    }
};



PreviousNext

Related