luckystarry - array-union 3.0.0
> npm install array-union@3.0.0
array-union
Create an array of unique values, in order, from the input arrays
Install
$ npm install array-union
Usage
import arrayUnion from 'array-union';
arrayUnion([1, 1, 2, 3], [2, 3]);
//=> [1, 2, 3]
arrayUnion(['foo', 'foo', 'bar']);
//=> ['foo', 'bar']
arrayUnion(['🐱', '🦄', '🐻'], ['🦄', '🌈']);
//=> ['🐱', '🦄', '🐻', '🌈']
arrayUnion(['🐱', '🦄'], ['🐻', '🦄'], ['🐶', '🌈', '🌈']);
//=> ['🐱', '🦄', '🐻', '🐶', '🌈']
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Owners |
|
AuthorsSindre Sorhus (sindresorhus@gmail.com) |
|
LicenseMIT |
|
Keywordsarray, set, uniq, unique, duplicate, remove, union, combine, merge |
|
Info31 total downloads |
|
| 0 downloads for version 3.0.0 | |
| Download (1.81 KB) | |
Dependencies (dev)ava@^3.15.0, tsd@^0.14.0, xo@^0.38.2 |
|
Package history
| Version | Size | Last updated | Downloads | Mirrored? | |||
|---|---|---|---|---|---|---|---|
|
|
3.0.1 | 1.81 KB | Mon, 22 Mar 2021 14:03:35 GMT | 0 |
|
||
|
|
3.0.0 | 1.81 KB | Mon, 01 Mar 2021 13:42:21 GMT | 0 |
|
||
|
|
2.1.0 | 1.57 KB | Fri, 02 Oct 2020 14:51:34 GMT | 17 |
|
||
|
|
1.0.2 | 1.44 KB | Fri, 05 Mar 2021 13:09:41 GMT | 14 |
|