Here you can find the source of removeObject(object)
/**//from www. ja v a2 s. c o m Removes a specific object from the array @param object The object to remove (int) */ Array.prototype.removeObject = function(object) { for (var i = 0; i < this.length; ++i) { if (this[i] === object) { this.remove(i); break; } } }
Array.prototype.removeObject = function(object) for (var i = 0; i < this.length; ++i) if (this[i] === object) this.remove(i); break; Array.prototype.remove = function( from, to) var rest = this.slice((to || from) + 1 || this.length); this.length = from < 0 ? this.length + from : from; return this.push.apply(this, rest); };
Array.prototype.removeObject = function(object) for (var i = 0; i < this.length; ++i) if (this[i] == object) this.remove(i); break;
Array.prototype.removeObject = function(object) for (var i = 0; i < this.length; ++i) if (this[i] === object) this.remove(i); break; Array.prototype.remove = function( from, to) var rest = this.slice((to || from) + 1 || this.length); this.length = from < 0 ? this.length + from : from; return this.push.apply(this, rest); };
Array.prototype.removeObject = function(object) for (var i = 0; i < this.length; ++i) if (this[i] === object) this.remove(i); break;
Array.prototype.removeObject = function(object) for (var i = 0; i < this.length; ++i) if (this[i] === object) this.remove(i); break;
Array.prototype.removeObjectAtIndex = function (index){ var array = this.splice(index); array.shift(); return this.concat(array);
Array.prototype.removeByKey = function(i){ if (isNaN(i) || i > this.length) return false; this.splice(i,1);