I prefer using the spread operator (newArr = [...oldArr]) in order to minimize errors. Usually the old array is no longer used and the interpreter could change
newArr = [...oldArr]