array-spread-merge
HTML
<script src="https://cdn.jsdelivr.net/gh/eu81273/jsfiddle-console/console.js"></script>
JavaScript
const array1 = ['a', 'b', 'c'];
const array2 = ['d', 'e', 'f'];
const mergeArray = [...array1, ...array2];
console.log('mergeArray', mergeArray);
// expected output: Array ["a", "b", "c", "d", "e", "f"]
console.log('array1', array1); // no change ['a', 'b', 'c']
console.log('array2', array2); // no change ['d', 'e', 'f']