Creates an array of unique values that are included in all given arrays.
intersection([1, 2], [2, 3]);// => [2] Copy
intersection([1, 2], [2, 3]);// => [2]
Type of the arrays elements.
arrays
The arrays to inspect.
The new array of intersecting values.
Creates an array of unique values that are included in all given arrays.
Example