I am currently working on an Angular project and dealing with the following array object:
{
"DATA": [
{
"CUSTOM1": [
{
"value": "Item1",
"isSelected": true
},
{
"value": "Item2",
"isSelected": true
},
{
"value": "Item2",
"isSelected": false
},
{
"value": "Item3",
"isSelected": false
}
],
CUSTOM2": [
{
"value": "Item11",
"isSelected": true
},
{
"value": "Item12",
"isSelected": true
},
{
"value": "Item13",
"isSelected": false
},
{
"value": "Item14",
"isSelected": false
}
]
}
]
}
I need to update the isSelected value to false in the CUSTOM1 object. How can I accomplish this in TypeScript?
Your insights and solutions would be greatly appreciated. Thank you!