@cjser/array-differ
v4.0.0-cjser.2
Published
Create an array with values that are present in the first input array but not additional ones
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-differUsage
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.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/array-differ
