union

v4.17.15arrow_drop_down
v4.17.15
v4.17.11
STATUS
Passing
DOWNLOADS
131
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
Creates an array of unique values, in order, from all given arrays using
2 contributors
Install union as a package?
Copied
npm i @bit/lodash.lodash.union
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
union (
arrays:...Array?
) : Array

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

Example
union([2, 3], [1, 2])
// => [2, 3, 1]
Argument
arrays: ...Array?

The arrays to inspect.

Returns
Array

Returns the new array of combined values.

Help and resources