I want to find and add extra key in object of array using lodash. I don't want to do in for loop and maintain in temp data.
"book": [
{
"name": "Hulk",
"series": [
{
"name": "mike",
"id": "100",
},
{
"name": "steve",
"id": "200"
}
]
}
],
Need to add detail object inside series array based on name: mike && id:100 search and return the complete book data.
{
"name": "mike",
"id": "100",
"detail":{
"author": 'apple'
"year": 1956
}
},