JavaScript Array concat() Method
The Array.concat() method is a built-in JavaScript function that merges two or more arrays or values into a new array. It does not modify the original arrays but returns a new array containing the elements of the input arrays and any additional values. Syntax Parameters Parameter Description value1, …, valueN Arrays or values to concatenate…