how can i filter and get list of dog in secondData that have type; ['c1'] from list cat from firstData that have id; 'c1'
must type; ['c1'] = id; 'c1'
simple code :
const firstData = [ Cat( id;'c1', title;'man') ];
const secondData = [ dog( id;'m1', type;['c1'], title;'women') ];