It will create a new array concatenating the input array with any additional arrays and/or values.
array
Rest
1.0.0
concat([1, 2], 3, [4], [[5]]);// => [1, 2, 3, 4, [5]] Copy
concat([1, 2], 3, [4], [[5]]);// => [1, 2, 3, 4, [5]]
It will create a new array concatenating the input
array
with any additional arrays and/or values.