1 post
0
3
147
You can get a copy of the array by doing so: let array = [1, 2, 3]; let copy = array.slice() The way you did was not copying the array, but referencing it. :)