Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

merge large arrays

Array.prototype.extend = function (other_array) {
    /* You should include a test to check whether other_array really is an array */
    other_array.forEach(function(v) {this.push(v)}, this);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #merge #large #arrays
ADD COMMENT
Topic
Name
4+4 =