Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xotic750/array-union-x
- Owner: Xotic750
- License: mit
- Created: 2017-08-25T18:47:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:34:16.000Z (almost 2 years ago)
- Last Synced: 2024-04-26T16:46:34.918Z (8 months ago)
- Topics: array, browser, javascript, nodejs, union
- Language: JavaScript
- Size: 2.24 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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]
```