Here you can find the source of append(ar)
Array.prototype.append = function(ar) { this.length += ar.length; for (var i = 0, len = this.length, len2 = ar.length; i < len2; i++) { this[len + i] = ar[i];//from w ww. j a va 2s . com } };
Array.prototype.append = function(){ var newarray = this; for(var j = 0; j < arguments.length; j++){ newarray.push(arguments[j]); return newarray; };
Array.prototype.append = function(a) {
this.push.apply(this, a)
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;