union

Array
since 0.1.0

Arguments

  • ...Array The arrays to inspect.

Returns

Array the new array of combined values.

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

Example of Lodash _.union

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