Javascript Array pushAll(x)

Description

Javascript Array pushAll(x)


Array.prototype.pushAll = function (x) {
  for (var i = 0; i < x.length; i += 1) {
    this.push(x[i]);//from w w w . j av  a2  s. c o  m
  }
};



PreviousNext

Related