JSFiddle - React, Tailwind, and code Playground
JavaScript
var bookmarks = [ { tags : "apple" }, { tags : "pineapple" }, {tags : "orange"}];
var matches = bookmarks.filter(function(x) {
return _.indexOf(['apple','orange'], x.tags) > -1;
});
console.log(matches);
console.log(matches.length);