How to find if two arrays contain any common object value in Javascript? code example
Example: get common values from two arrays javascript
let intersection = arrA.filter(x => arrB.includes(x));
let intersection = arrA.filter(x => arrB.includes(x));