Add elements from another array - Node.js Array

Node.js examples for Array:Add Element

Description

Add elements from another array

Demo Code


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;
};

Related Tutorials