Creates an array of array values not included in the other given arrays.
npm install array-difference-x href="https://travis-ci.org/Xotic750/array-difference-x"
title="Travis status"> src="https://travis-ci.org/Xotic750/array-difference-x.svg?branch=master"
alt="Travis status" height="18">
href="https://david-dm.org/Xotic750/array-difference-x"
title="Dependency status"> alt="Dependency status" height="18"/>
href="https://david-dm.org/Xotic750/array-difference-x?type=dev"
title="devDependency status"> alt="devDependency status" height="18"/>
href="https://badge.fury.io/js/array-difference-x"
title="npm version"> alt="npm version" height="18">
href="https://www.jsdelivr.com/package/npm/array-difference-x"
title="jsDelivr hits"> alt="jsDelivr hits" height="18">
href="https://bettercodehub.com/results/Xotic750/array-difference-x"
title="bettercodehub score"> alt="bettercodehub score" height="18">
href="https://coveralls.io/github/Xotic750/array-difference-x?branch=master"
title="Coverage Status"> alt="Coverage Status" height="18">
Creates an array of array values not included in the other given arrays.
This method creates an array of array values not included in the other 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 filtered values.
Throws:
- TypeError If array is null or undefined.
| Param | Type | Description |
| ------------ | ------------------ | ---------------------- |
| array | array | The array to inspect. |
| [...exclude] | array | The values to exclude. |
Example
``js
import difference from 'array-difference-x';
console.log(difference([2, 1], [2, 3])); // => [1]
``