1let arr=[{id:1,title:'A', status:true}, {id:3,title:'B',status:true}, {id:2, title:'xys', status:true}];
2//find where title=B
3let x = arr.filter((a)=>{if(a.title=='B'){return a}});
4console.log(x)//[{id:3,title:'B',status:true}]
1var arr = [1,2,3,4],
2 brr = [2,4],
3 res = arr.filter(f => !brr.includes(f));
4console.log(res);