Copy:Clone A JavaScript Array

Shallow copy a one dimensional array with the spread operator

You can now change originalArray without changing newArray