array-differ
v4.0.0
Published
Create an array with values that are present in the first input array but not additional ones
Downloads
19,763,875
Maintainers
Readme
array-differ
Create an array with values that are present in the first input array but not additional ones
Install
$ npm install array-differ
Usage
import arrayDiffer from 'array-differ';
arrayDiffer([2, 3, 4], [3, 50]);
//=> [2, 4]
API
arrayDiffer(input, ...values)
Returns a new array.
input
Type: unknown[]
values
Type: unknown[]
Arrays of values to exclude.