I am having a two array of objects,
let list = [
{
"currency": "Albania Lek",
"abbreviation": "ALL",
},
{
"currency": "Afghanistan Afghani",
"abbreviation": "AFN",
},
{
"currency": "Argentina Peso",
"abbreviation": "ARS",
}];
let c = [
{
"value": "AFN"
},
{
"value": "ARS"
}]
let asd = list.filter(l=>{
return l.abbreviation === c.forEach(x=>x.sCurrencyName)
})
i want to return only those object from list
which has value in Array of object c