node/tools/eslint/node_modules/array-union
Rich Trott 31f572c3ea
tools: update to ESLint 4.3.0
PR-URL: https://github.com/nodejs/node/pull/14417
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-09-05 12:50:01 -04:00
..
index.js
license tools: update ESLint, fix unused vars bug 2016-07-15 08:09:42 -05:00
package.json tools: update to ESLint 4.3.0 2017-09-05 12:50:01 -04:00
readme.md tools: update ESLint, fix unused vars bug 2016-07-15 08:09:42 -05:00

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