Returns a new array containing only the elements common to all input arrays.
The type of array elements.
Two or more arrays to intersect.
An array of elements found in all input arrays.
intersect([1, 2, 3], [2, 3, 4]); // [2, 3] Copy
intersect([1, 2, 3], [2, 3, 4]); // [2, 3]
Returns a new array containing only the elements common to all input arrays.