let arr = [1,2,3]
let arr2 = [...arr]
let [...arr3] = arr
The arr2 and arr3, both make a shallow copy of arr. What is actually the difference?
let arr = [1,2,3]
let arr2 = [...arr]
let [...arr3] = arr
The arr2 and arr3, both make a shallow copy of arr. What is actually the difference?