Javascript Array InsertAt(obj, pos)

Description

Javascript Array InsertAt(obj, pos)



Array.prototype.InsertAt = function (obj, pos) {
    this.splice(pos, 0, obj);/*from ww w  .  j a v  a2  s . c  o  m*/
};



PreviousNext

Related