Javascript Array arrRemove(n)
Array.prototype.arrRemove = function (n) { if (n < 0) return this; else/* w w w . j a v a 2s .c o m*/ return this.slice(0, n).concat(this.slice(n + 1, this.length)); }