array-union
Advanced tools
Create an array of unique values, in order, from the input arrays
Weekly downloads
Changelog
https://github.com/sindresorhus/array-union/compare/v3.0.0...v3.0.1
Readme
Create an array of unique values, in order, from the input arrays
$ npm install array-union
import arrayUnion from 'array-union';
arrayUnion([1, 1, 2, 3], [2, 3]);
//=> [1, 2, 3]
arrayUnion(['foo', 'foo', 'bar']);
//=> ['foo', 'bar']
arrayUnion(['🐱', '🦄', '🐻'], ['🦄', '🌈']);
//=> ['🐱', '🦄', '🐻', '🌈']
arrayUnion(['🐱', '🦄'], ['🐻', '🦄'], ['🐶', '🌈', '🌈']);
//=> ['🐱', '🦄', '🐻', '🐶', '🌈']
Create an array of unique values, in order, from the input arrays
The npm package array-union receives a total of 34,463,382 weekly downloads. As such, array-union popularity was classified as popular.
We found that array-union demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.