Here you can find the source of append(item)
/***************************************************************************** * Adding other prototypes from https://gist.github.com/578843 *//*from ww w .j a v a2s. c om*/ // Because I am an idiot and keep on using 'append', instead of 'push'. Array.prototype.append = function (item) { this.push(item); return this; };
Array.prototype.append = function (arr) { if (arr) { for (var i = 0; i < arr.length; i++) { this.push(arr[i]); return this; };
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(obj,nodup){ if (!(nodup && this.contains(obj))){ this[this.length]=obj;
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 ] ); };