Can I search multiple values?
Opened this issue · 1 comments
usfslk commented
I have an array of 3 different values, it is possible to search across the three of them?
farouqBenarous commented
yes of course this is the function that i am using
` const ApplyFilter =(Filters , newdata ) =>{
if (isEmptyList(Filters )) {
// to not delete my data
SetFiltredData(props.opportunities)
return;
}
for(var filter of Filters) {
newdata[props.currentStatusView] = newdata[props.currentStatusView].filter(
(item) => {
return item["search Key "] === filter.value
}
)
}
// just to update my new data you can make it as return
SetFiltredData (newdata)
}`