Let's suppose I have the following object in React:
{
name: 'John Max',
plan: { active: true }
}
And then, I have the following object:
{ fields: { "plan.active": false } }
How can I adapt this object in order to replace with the current object?
So, in this example, the plan[active]
would become false
instead of true
. That would be the only change.