3.1.2 • Published 5 years ago

array-difference-x v3.1.2

Weekly downloads
44
License
MIT
Repository
github
Last release
5 years ago

array-difference-x

Creates an array of array values not included in the other given arrays.

module.exports(array, [...exclude])array

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.
ParamTypeDescription
arrayarrayThe array to inspect.
...excludearrayThe values to exclude.

Example

import difference from 'array-difference-x';

console.log(difference([2, 1], [2, 3])); // => [1]
3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.16

5 years ago

3.0.15

5 years ago

3.0.14

5 years ago

3.0.13

5 years ago

3.0.12

5 years ago

3.0.11

5 years ago

3.0.10

5 years ago

3.0.9

5 years ago

3.0.8

5 years ago

3.0.7

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago