By itself would error out but as seen as shown in the following I can see its the other way round from what I described. Using the spread operator copies it once but using the equal operator mirrors it.
let thisArray = [true, true, undefined, false, null];
let thatArray = [...thisArray];
// let thatArray = thisArray;
thisArray = 42;
If you want to actually copy, then you need to use the spread.
What you are doing here is not copying the array, rather you are creating a reference to the original array.
Now if you do thatArray = false; and try logging console.log(thisArray) you will see that the value of thisArray (which is the main array) has changed. In other words, you havent copied the array, rather you accessed it with a different variable.
Now lets see what happens when you use the spread operator with an example →