get mutual part of 2 array javascript code example Example: javascript do arrays intersect let intersection = arrA.filter(x => arrB.includes(x));