Javascript : Map multiple keys

How i map following Arrays,
the filter Array are an AND combination and looks for a suitable note.

So that the result is note[0] and note[3]

filter:[
0:{titel: 'A'}, 
1:{titel: 'B'}]

note:[
{0:[0:{titel: 'A'},1:{titel: 'B'}]}, 
{1:{titel: 'B'}},
{2:{titel: 'C'}}, 
{3:[0:{titel: 'A'},1:{titel: 'B'}, 2:{titel: 'c'}]}]

Thanks for helping.