Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xotic750/array-union-x

Creates an array of unique values, in order, from all given arrays.
https://github.com/xotic750/array-union-x

array browser javascript nodejs union

Last synced: about 2 months ago
JSON representation

Creates an array of unique values, in order, from all given arrays.

Awesome Lists containing this project

README

        


Travis status


Dependency status


devDependency status


npm version


jsDelivr hits


bettercodehub score


Coverage Status

## array-union-x

Creates an array of unique values, in order, from all given arrays.

**Version**: 2.0.0
**Author**: Xotic750
**License**: [MIT](https://opensource.org/licenses/MIT)
**Copyright**: Xotic750

### `module.exports([...array])` ⇒ array

This method creates an array of unique values, in order, from all given
arrays using SameValueZero for equality comparisons.

**Kind**: Exported function
**Returns**: array - Returns the new array of combined values.

| Param | Type | Description |
| ---------- | ------------------ | ---------------------- |
| [...array] | array | The arrays to inspect. |

**Example**

```js
import union from 'array-union-x';

console.log(union([2], [1, 2])); // => [2, 1]
```