Array.concat
concat — Based on the given input array, returns a new array with the parameters provided added to the end.
If the parameter is an array, each value will be added.
Description
Array.concat(mixed item, [mixed item, …])
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
item | mixed | No | ||
item, … | mixed | Yes |
Return values
The new array with the values added.
Examples
Example #1 – concat example
Example #2 – concat example