最終更新:2022-07-07 (木) 13:10:18 (39d)  

Array.prototype.concat
Top / Array.prototype.concat

used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat

concat()
concat(value0)
concat(value0, value1)
concat(value0, value1, ... , valueN)

関連

  • Array.prototype.push? - 元の配列を変更