I\'m trying to filter a list by tags:
const initialState = [ {id:1 ,name: \'Product A\', image: \'pic-001.jpg\', tags: [\'nature\', \'campi
you can use indexOf function
var foo = initialState.filter(function(elm){ return elm.tags.indexOf("camping")>=0 });