Rest
...arrays: T[][]The arrays to inspect.
Rest
Returns the new array of combined values.
5.20.0
[[difference]], [[unionBy]], [[unionWith]], [[without]], [[xor]], [[xorBy]]
union([2, 3], [1, 2])
// => [2, 3, 1]
Rest
...arrays: any[][]Rest
Creates an array of unique values, in order, from all given arrays using
SameValueZero
for equality comparisons.