Courses / JavaScript
20. Array.prototype.concat()
Used to merge two or more arrays into a new array.
1 min read Chapter 20 of 99
JavaScript
Array.prototype.concat()
Array.prototype.concat() is a method to merge two or more arrays into a new array.
"I need to combine multiple lists of items without altering the originals."
Array.prototype.concat() creates a new array by combining arrays or values without modifying the original arrays.
"I need to combine multiple lists of items without altering the originals."
Array.prototype.concat() creates a new array by combining arrays or values without modifying the original arrays.