Suppose i have an array looklike this
var users = [
{ 'users': [{user:'harry',user:'potter',user:'jiy',user:'weasly'}], 'age': 36, 'active': true },
{ 'users': [{user:'brad',user:'pit',user:'angelena',user:'joly'}], 'age': 40, 'active': false }
];
From this i want to select json with condition users object match multiple values
eg: if the names are harry and angelena the output becomes this
{ 'users': [{user:'harry',user:'potter',user:'jiy',user:'weasly'}], 'age': 36, 'active': true },
{ 'users': [{user:'brad',user:'pit',user:'angelena',user:'joly'}], 'age': 40, 'active': false }
Eg: if the name is harry output becomes this
{ 'users': [{user:'harry',user:'potter',user:'jiy',user:'weasly'}], 'age': 36, 'active': true }
I know lodash filter with matches can be used for this ,but i don't how to applicable for this case.
Is any javascript or jquery solution for this problem?
