Push all to Array - Node.js Array

Node.js examples for Array:Array Operation

Description

Push all to Array

Demo Code


Array.prototype.push_all = function(array) {
    for (var index in array) {
        this.push(array[index]);//www .  jav  a  2  s .  com
    }
}

Related Tutorials