I am trying to avoid importing lodash for a simple filter. I am trying to do something similar to this...
// Items
[
{ "title": "a", "name": "a", "location": "here"},
{ "title": "b", "name": "a", "location": "here"},
{ "title": "d", "location": "there"},
]
// Filter
{ "name" : "a", "location": "here" }
Should return the first two items. In lodash this is done by something similar to _.filter(Items, Filter). I would like to implement this without lodash or a bunch of code and getting Object.keys. Is there a simple way in modern Javascript to handle this?