I have below type of filters array, each key has a single array with its filter. Now I want to filter my main object according to the below filter value. I found one solution for that, but it's for a single value, I want to make it multiple values as per below. Here is the link to the solution which I found.
let filter = [];
filter['address'] = ["England", "UK"];
filter['name'] = ["Mark", "TOM"];
var users = [{
name: 'John',
email: 'johnson@mail.com',
age: 25,
address: 'USA'
},
{
name: 'Tom',
email: 'tom@mail.com',
age: 35,
address: 'England'
},
{
name: 'Mark',
email: 'mark@mail.com',
age: 28,
address: 'England'
}];