Projekt

Obecné

Profil

Stáhnout (513 Bajtů) Statistiky
| Větev: | Revize:
1 3a515b92 cagy
# array-union [![Build Status](https://travis-ci.org/sindresorhus/array-union.svg?branch=master)](https://travis-ci.org/sindresorhus/array-union)
2
3
> Create an array of unique values, in order, from the input arrays
4
5
6
## Install
7
8
```
9
$ npm install --save array-union
10
```
11
12
13
## Usage
14
15
```js
16
const arrayUnion = require('array-union');
17
18
arrayUnion([1, 1, 2, 3], [2, 3]);
19
//=> [1, 2, 3]
20
21
arrayUnion(['foo', 'foo', 'bar'], ['foo']);
22
//=> ['foo', 'bar']
23
```
24
25
26
## License
27
28
MIT © [Sindre Sorhus](https://sindresorhus.com)