Intersection creates an array of unique values that are included in all given arrays
arrays
(Array): input array(s)
(Array): an array containing the unique intersecting values between all input arrays
const result = arrays.intersection([4, 2, 1], [2, 3, 4]));
console.log(result);
> [4, 2]