Consider this example. I am using Lodash
\'data\': [
{
\'category\': {
\'uri\': \'/categories/0b092e7c-4d2c-4eba-8c4e-80
In lodash 4.x, you need to do:
_.filter(summary.data, ['category.parent', 'Food'])
(note the array wrapping around the second argument).
This is equivalent to calling:
_.filter(summary.data, _.matchesProperty('category.parent', 'Food'))
Here are the docs for _.matchesProperty:
// The `_.matchesProperty` iteratee shorthand.
_.filter(users, ['active', false]);
// => objects for ['fred']