zhaoyu_ma 5d3259f632 代码混淆插件. | 8 miesięcy temu | |
---|---|---|
.. | ||
index.d.ts | 8 miesięcy temu | |
index.js | 8 miesięcy temu | |
license | 8 miesięcy temu | |
package.json | 8 miesięcy temu | |
readme.md | 8 miesięcy temu |
Create an array of unique values, in order, from the input arrays
$ npm install array-union
const arrayUnion = require('array-union');
arrayUnion([1, 1, 2, 3], [2, 3]);
//=> [1, 2, 3]
arrayUnion(['foo', 'foo', 'bar']);
//=> ['foo', 'bar']
arrayUnion(['🐱', '🦄', '🐻'], ['🦄', '🌈']);
//=> ['🐱', '🦄', '🐻', '🌈']
arrayUnion(['🐱', '🦄'], ['🐻', '🦄'], ['🐶', '🌈', '🌈']);
//=> ['🐱', '🦄', '🐻', '🐶', '🌈']
MIT © Sindre Sorhus