JavaScript Array method: concat()
[this page | pdf | back links]
The concat() method (when applied to a JavaScript
array) joins
arrays and returns a copy of the joined array.
It
has the following syntax with the following parameters. It returns an
array.
array.concat(array1, array2, …)
|
Parameter
|
Required / Optional
|
Description
|
|
array1, array2, …
|
Required
|
The arrays to be joined
(inserted after the original array in the returned result)
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript Arrays