I want to update an item of an array at a given index in my reducer using ES6 spread operator ... Here is what I am doing
let array = action.payload.items;
return [...array, array[3].id:555]
By this way editing works very well, but it also adds an extra item in the array.
Any help???