Javascript Array concatByReference(array)
Array.prototype.concatByReference = function(array){ for (var i = array.length - 1; i >= 0; i--) { this.push(array[i]);//w w w. jav a2s . c o m }; }