4.17.11
3.10.1
2.4.2
1.3.1

_.intersection([arrays])

Creates an array of unique values that are included in all given arrays using SameValueZero for equality comparisons. The order and references of result values are determined by the first array.

Since

0.1.0

Arguments

argument
[arrays]
type
...Array
description
The arrays to inspect.

Returns

(array)

Example

_.intersection([2, 1], [2, 3]);
// => [2]
_.intersection([2, 1], [2, 3]);
// => [2]