I have an array model as below:
records:[{
\"empid\":1,
\"fname\": \"X\",
\"lname\": \"Y\"
},
{
\"empid\":2,
\"fname\": \"A\",
\"lnam
In case you have key value pairs in your input array, I used:
.filter(
this.multi_items[0] != null && store.state.isSearchBox === false
? item =>
_.map(this.multi_items, "value").includes(item["wijknaam"])
: item => item["wijknaam"].includes("")
);
where the input array is multi_items as: [{"text": "bla1", "value": "green"}, {"text": etc. etc.}]
_.map is a lodash function.