Creates an array of unique values that are included in all given arrays.
npm install array-intersection-x href="https://travis-ci.org/Xotic750/array-intersection-x"
title="Travis status"> src="https://travis-ci.org/Xotic750/array-intersection-x.svg?branch=master"
alt="Travis status" height="18">
href="https://david-dm.org/Xotic750/array-intersection-x"
title="Dependency status"> alt="Dependency status" height="18"/>
href="https://david-dm.org/Xotic750/array-intersection-x?type=dev"
title="devDependency status"> alt="devDependency status" height="18"/>
href="https://badge.fury.io/js/array-intersection-x"
title="npm version"> alt="npm version" height="18">
href="https://www.jsdelivr.com/package/npm/array-intersection-x"
title="jsDelivr hits"> alt="jsDelivr hits" height="18">
href="https://bettercodehub.com/results/Xotic750/array-intersection-x"
title="bettercodehub score"> alt="bettercodehub score" height="18">
href="https://coveralls.io/github/Xotic750/array-intersection-x?branch=master"
title="Coverage Status"> alt="Coverage Status" height="18">
Creates an array of unique values that are included in all given arrays.
This method creates an array of unique values that are included in all given
arrays using SameValueZero for equality comparisons. The order and references
of result values are determined by the first array.
Kind: Exported function
Returns: array - Returns the new array of intersecting values.
| Param | Type | Description |
| ---------- | ------------------ | ---------------------- |
| [...array] | array | The arrays to inspect. |
Example
``js
import intersection from 'array-intersection-x';
console.log(intersection([2, 1], [2, 3])); // => [2]
``