intersection
最后更新于:2022-04-01 23:58:03
## intersection
+ [link](./intersection "Link to this entry.")
+ [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L6089 "View in source.")
+ [npm](https://www.npmjs.com/package/lodash.intersection "See the npm package.")
```
_.intersection([arrays])
```
创建一个包含所有使用 [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) 进行等值比较后筛选的唯一值数组。
### 参数
1. [arrays] (...Array)
需要处理的数组队列
### 返回值 (Array)
返回数组中所有数组共享元素的新数组
### 示例
```
_.intersection([2, 1], [4, 2], [1, 2]);
// => [2]
```
';