Estoy tratando de insertar una cadena con clave dentro de una matriz de múltiples objetos. Y necesito empujar o agregar la cadena dentro de una matriz presente en el objeto. Entonces, el objetivo principal es 1) agregar una cadena en una matriz que está presente en el objeto y el objeto está presente en una matriz 2) No debe haber duplicación al agregarlo también.
abajo están mis datos iniciales
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'] }] ```