1)with some
function test(arr1,arr2){ return arr1.filter(el1=>{ return arr2.some(el2=>{ return el2 === el1 }) }) }
co