Javascript Array pushAll(iterable)

Description

Javascript Array pushAll(iterable)


Array.prototype.pushAll = function (iterable) {
  for (const value of iterable) {
    this.push(value)//w w  w.j  a v  a 2  s .com
  }
}



PreviousNext

Related