You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 513B

12345678910111213141516171819202122232425262728
  1. # array-union [![Build Status](https://travis-ci.org/sindresorhus/array-union.svg?branch=master)](https://travis-ci.org/sindresorhus/array-union)
  2. > Create an array of unique values, in order, from the input arrays
  3. ## Install
  4. ```
  5. $ npm install --save array-union
  6. ```
  7. ## Usage
  8. ```js
  9. const arrayUnion = require('array-union');
  10. arrayUnion([1, 1, 2, 3], [2, 3]);
  11. //=> [1, 2, 3]
  12. arrayUnion(['foo', 'foo', 'bar'], ['foo']);
  13. //=> ['foo', 'bar']
  14. ```
  15. ## License
  16. MIT © [Sindre Sorhus](https://sindresorhus.com)