4
0
mirror of https://gitee.com/dcloud/uni-preset-vue synced 2025-05-12 14:21:33 +08:00
2018-11-18 15:15:00 +08:00
..
2018-11-18 15:15:00 +08:00
2018-11-18 15:15:00 +08:00
2018-11-18 15:15:00 +08:00
2018-11-18 15:15:00 +08: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