tree: ca4b025f842a16203b8ed06c1eb44cc856d3f12e [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/array-union/readme.md

array-union Build Status

Create an array of unique values, in order, from the input arrays

Install

$ npm install --save array-union

Usage

const arrayUnion = require('array-union');

arrayUnion([1, 1, 2, 3], [2, 3]);
//=> [1, 2, 3]

arrayUnion(['foo', 'foo', 'bar'], ['foo']);
//=> ['foo', 'bar']

License

MIT © Sindre Sorhus