how to find common values in 2 arrays js code example Example: get common values from two arrays javascript let intersection = arrA.filter(x => arrB.includes(x));