Compute intersection of two object arrays in JavaScript [duplicate] code example
Example: javascript do arrays intersect
let intersection = arrA.filter(x => arrB.includes(x));
let intersection = arrA.filter(x => arrB.includes(x));