Find match in two arrays
问题 Update Got the answer: if (this.checkedColors.length > 0) { straps = straps.filter(strap => { return strap.colors.find(color => { return this.checkedColors.includes(color.title.toLowerCase()); }); }); } I have two arrays, where I need to return products that match the checkbox value. I've created a screen recording to display how this works: http://recordit.co/EddLjeqM7i My code is the following: export default { data() { checkedColors: [], filterings: [{ title: "Farver", filters: [{ title: