Name

concat() — NN 4 IE J3 ECMA n/a

Synopsis

concat(array2)

Returns an array that combines the current array object with a second array object specified as the method parameter:

var combinedArray = myArray1.concat(myArray2)

Neither of the original arrays is altered in the process.

Returned Value

An Array object.

Parameters

array2

Any JavaScript array.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.