iam trying trying to insert a string with key inside an array of multiple objects.and i need to push or add the string inside an array present in the object.So the main objective is to 1) add a string into a array which is present in the object and the object is present in a array 2)No duplication should take place when adding it too.
down below is my initial data
status:'good'
array:[{
name:Jason
type:student
attributes:[active:'yes']
},
{
name:Markie
type:student
attributes:[active:'yes']
}]
and this is what iam trying to achieve
status:'good'
array:[{
name:Jason
type:student
attributes:[status:'good',active:'yes'
},
name:Markie
type:student
attributes:[active:'yes']
}] ```