I an array like this
@observable data = [{a: 1}, {b: 1}, {c:1}];
@observable sampleData = [];
I want to do a slice
this.sampleData = this.data .slice(0, 1);
this.sampleData[0].a = 2;
I want "2" to effect the the record in "sampleData" not in the "data" array what is happening now.