Here is my array of object:
let a = [
{"team_id": 14, "name": "Aus"},
{"team_id":39,"name": "New"},
{"team_id": 44, "name": "Ind",}
]
let b = [{"team_id":39,"name": "New"}]
I want to find array of object b value and add new key value to that object "selected":true I want output like this:
let c = [
{"team_id": 14, "name": "Aus"},
{"team_id":39,"name": "New","selected":true},
{"team_id": 44, "name": "Ind",}
]