Here you can find the source of remove(index)
/* Removes element at the given index *//* ww w . j a v a2 s.c om*/ Array.prototype.remove = function(index) { return this.splice(index, 1); }
Array.prototype.remove = function(i) { if (typeof i != "number") i = this.indexOf(i); this.splice(i,1); return i; Array.prototype.insert = function(v, i) { if (arguments.length == 1) i = this.length; ...
Array.prototype.remove = function(index)
this.splice(index,1);
};
Array.prototype.remove = function(index) { this.splice(index, 1); return this; };
'use strict'; Array.prototype.remove = function (index) { return this.splice(index, 1);
Array.prototype.remove=function(index){ for(var i=0;i<this.length;i++){ if(i==index){ this.splice(i, 1); break;
Array.prototype.remove = function(n) {
this.splice(this.indexOf(n), 1);
};
Array.prototype.remove = function(n){ for(var i in this){ if(this[i]==n){ this.splice(i,1); break; return this;