Assumed that is the JSON structure:
var myData = [
{
"id": 68,
"country": "US",
},
{
"id": 82,
"country": "PL",
},
{
"id": 83,
"country": "US",
}
];
I want to get all items, where country == US
Following try does not work:
var myResult = _.where (myData, {'country': 'US'});
I get an empty result > myResult []
What is the mistake?
EDIT: Sorry, the use of lodash and underscore together was the problem !

filter)?_.wheredoes not exists in that version of lodash, but does in previous versions.