I've got two color arrays and I want to return those objects which are in local
array and are not available in API response
.
API resposne array
[
{
"id": 25,
"color": "#00ad02"
},
{
"id": 28,
"color": "#e1b12c"
}
]
Local array
[
{
"id": 26,
"color": "#00ad02",
},
{
"color": "#e1b12c",
"id": 28,
}
]
Loop over both arrays and return the one which are not contained by the API response array. Here I am seeking output of id
25.