Bakhtina Sofya b84cb877be 1st comm | hace 2 semanas | |
---|---|---|
.. | ||
index.js | hace 2 semanas | |
license | hace 2 semanas | |
package.json | hace 2 semanas | |
readme.md | hace 2 semanas |
Create an array of unique values, in order, from the input arrays
$ npm install --save array-union
const arrayUnion = require('array-union');
arrayUnion([1, 1, 2, 3], [2, 3]);
//=> [1, 2, 3]
arrayUnion(['foo', 'foo', 'bar'], ['foo']);
//=> ['foo', 'bar']
MIT © Sindre Sorhus