Irina Glushko 2389e7160b HW1 done 3 år sedan
..
index.d.ts 2389e7160b HW1 done 3 år sedan
index.js 2389e7160b HW1 done 3 år sedan
license 2389e7160b HW1 done 3 år sedan
package.json 2389e7160b HW1 done 3 år sedan
readme.md 2389e7160b HW1 done 3 år sedan

readme.md

array-union Build Status

Create an array of unique values, in order, from the input arrays

Install

$ npm install array-union

Usage

const arrayUnion = require('array-union');

arrayUnion([1, 1, 2, 3], [2, 3]);
//=> [1, 2, 3]

arrayUnion(['foo', 'foo', 'bar']);
//=> ['foo', 'bar']

arrayUnion(['🐱', '🦄', '🐻'], ['🦄', '🌈']);
//=> ['🐱', '🦄', '🐻', '🌈']

arrayUnion(['🐱', '🦄'], ['🐻', '🦄'], ['🐶', '🌈', '🌈']);
//=> ['🐱', '🦄', '🐻', '🐶', '🌈']

License

MIT © Sindre Sorhus