A utility function that returns the intersection between two arrays.
arrayIntersection([1, 2, 3], [2, 3, 4]) // [2, 3] Copy
arrayIntersection([1, 2, 3], [2, 3, 4]) // [2, 3]
arrayIntersection([1, 2, 3], [4, 5, 6]) // [] Copy
arrayIntersection([1, 2, 3], [4, 5, 6]) // []
The first array.
The second array.
An array containing the intersection between the two arrays.
A utility function that returns the intersection between two arrays.
Example
Example