es esto esperado?
const testObj = { a: 'hi', b: 'there' } function destructured_test({a, b}) { a = 'bye'; } console.log(testObj); destructured_test(testObj); console.log(testObj); function test(t) { ta = 'bye'; } console.log(testObj); test(testObj); console.log(testObj);solo la función 'test' muta testObj 'destructured_test' parece estar copiando las propiedades en lugar de preservar la referencia