array-union-x
v3.1.2 array union module javascript nodejs browser
array-union-x
Creates an array of unique values, in order, from all given arrays.
Version: 2.0.0
Author: Xotic750 [email protected]
License: 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
import union from 'array-union-x';
console.log(union([2], [1, 2])); // => [2, 1]
npm i array-union-x
Metadata
- MIT
- >=8.11.4
- Graham Fairweather
- released 8/28/2019