Closed dengxiao0509 closed 4 years ago
e.g.
const obj = {a: '123'}
const obj2 = update(obj, { a: { $set: '123 ', } })
console.log(obj === obj2) // true
It seems that helper considers '123' is equal to '123 '? But that results in failing getting a new obj reference, any solution?
This seems to be working as expected in runkit: https://runkit.com/embed/mq5zkzqv3y2z
e.g.
const obj = {a: '123'}
const obj2 = update(obj, { a: { $set: '123 ', } })
console.log(obj === obj2) // true
It seems that helper considers '123' is equal to '123 '? But that results in failing getting a new obj reference, any solution?