var newArr2=JSON.parse(JSON.stringify(arr));console.log(arr[0])//{a:1,b:2}newArr2[0].a=123console.log(arr[0])//{a:1,b:2}