Looking to update a data object by adding a new item? Convert the object into an array, add the item, and then switch it back to an object to achieve that. Here's the initial data object:
{
Activity: 'digitalLoan',
digitalLoan_type: 'first_advance',
firstdvance_acc_number: '321e132e1'
}
What's the best approach to accomplish this?