Node.js examples for Array:Add Element
Add elements from another array
Array.prototype.addAll = function( list ) { for( var i=0; i<list.length; i++ ) { this.push( list[i] );//from w w w.java 2 s . c om } return this; };