Sha256: 49360d4a9a32fae0ca06b4e38ce2b859b94d4f8b5827ffbf1580b3aa88c23854
Contents?: true
Size: 713 Bytes
Versions: 49
Compression:
Stored size: 713 Bytes
Contents
# array-union [![Build Status](https://travis-ci.org/sindresorhus/array-union.svg?branch=master)](https://travis-ci.org/sindresorhus/array-union) > Create an array of unique values, in order, from the input arrays ## Install ``` $ npm install array-union ``` ## Usage ```js 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](https://sindresorhus.com)
Version data entries
49 entries across 49 versions & 2 rubygems