KC
Thank you for bringing this to my notice. I found a workaround for this bug. If there is a condition where you need to edit the content of the array, then you can do this. e.g. const cart = [{ name : 'headphones' , price : 2000 }]; const newCart = cart.map( item => ({...item})); newCart[ 0 ].name = 'Expensive Boat' ; console .log(cart); // [{name: 'headphones', price: 2000}] console .log(newCart); // [{name: 'Expensive Boat', price: 2000}]