I'm using redux, then I need to be able to remove a key from object without mutating it.
But when removing a netsed key from a clone, the original object is also mutated. Like this :
let t1 = {a: { a1: 'test' }}
let t2 = Object.assign({}, t1}
delete t2['a']['a1']
t2 // { a: {} } // ok.
t1 // { a: {} } // Not ok !
Any hint ?