I was wondering how I can check this. Example:
var products = [
{
title: 'Product 1',
categories: ['One', 'Two', 'Three']
},
{
title: 'Product 2',
categories: ['Three', 'Four']
}
];
var categories = ['Two','Four'];
How can I get the two products matching one of the categories? Hope someone can help me out :)