Here you can find the source of append(obj,nodup)
/*//w w w . j a va 2 s .co m add some useful methods to the javascript array class. All operating on the built-in Array class, so no need for any namespacing object. Dave Crane 2005 */ /* append to end of array, optionally checking for duplicates */ Array.prototype.append=function(obj,nodup){ if (!(nodup && this.contains(obj))){ this[this.length]=obj; } }
Array.prototype.append = function(array)
this.push.apply(this, array)
Array.prototype.append = function(e) {
this.push(e);
Array.prototype.append=function(from) { this[this.length]=from; return this;
Array.prototype.append = function(item) { for (let i = 0; i !== this.length; i++) { if (this[i] === null || this[i] === undefined) { this[i] = item; return i; return this.push(item) - 1; }; ...
Array.prototype.append = function (item) { this.push(item); return this; };
Array.prototype.appendUniqueObj = function(oneItem) if (!this.contains(oneItem)) this[this.length] = oneItem;
Array.prototype.append_all=function(from) { for(var i=0;i<from.length;i++) { this.append(from[i]); return this;
Array.prototype.Append = function( arr ) for ( var i = 0; i < arr.length; i++ ) this.push( arr[ i ] ); };
Array.prototype.AddItem = function( item ) var i = this.length ; this[ i ] = item ; return i ;