Bakhtina Sofya b84cb877be 1st comm | vor 2 Wochen | |
---|---|---|
.. | ||
index.js | vor 2 Wochen | |
license | vor 2 Wochen | |
package.json | vor 2 Wochen | |
readme.md | vor 2 Wochen |
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