Hello i have an array object i have to find values from object with match array keys below is array and object i tried but not getting the result
var filterkey = [a,b,c];
var palistarray = [{
{
"Id": 199,
"a": "Rajesh Tamore",
"b": "23/11/2022",
"c": "23/11/2022",
"d": "W"
},
{
"Id": 200,
"a": "Sunil N",
"b": "21/11/2022",
"c": "21/11/2022",
"d": "S"
},
}]
i want result like below
[{
{
"a": "Rajesh Tamore",
"b": "23/11/2022",
"c": "23/11/2022",
},
{
"a": "Sunil N",
"b": "21/11/2022",
"c": "21/11/2022",
},
}]
i had tried below code
palistarray.find((item,index) => {
console.log(item[filterkey[index]]);
});