Want to replace the elements of an array with the elements of another array? Yes, you do.
arr.splice.apply(null, [0, 0].concat(myOtherArray));
Not magic, just a different kind of science.
Want to replace the elements of an array with the elements of another array? Yes, you do.
arr.splice.apply(null, [0, 0].concat(myOtherArray));