Date

“Array” Methods

_.union([arrays])

source npm package

Creates an array of unique values, in order, from all given arrays using SameValueZero for equality comparisons.

引入版本

0.1.0

参数
[arrays] (...Array) : The arrays to inspect.

返回值
(Array) : Returns the new array of combined values.

示例
_.union([2], [1, 2]);
// => [2, 1]