Tell us what’s happening:
Describe your issue in detail here.
Your code so far
function frankenSplice(arr1, arr2, n) {
let cpyArr2 = arr2.slice(0);
cpyArr2.splice(n,0,arr1);
return cpyArr2.flat();
}
frankenSplice([1, 2, 3], [4, 5, 6], 1);
Is there any reason to use spread operator over using return cpyArr2.flat() to concatentate to one array?
**Your browser information:**
User Agent is: <code>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36</code>
**Challenge:** Slice and Splice
**Link to the challenge:**
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice