npm.devtool.tech
👏 You can access array-differ package with using arrayDiffer variable in browser devtools!
Create an array with values that are present in the first input array but not additional ones

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

array-differ Build Status

Create an array with values that are present in the first input array but not additional ones

Install

$ npm install array-differ

Usage

const arrayDiffer = require('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.

License

MIT © Sindre Sorhus

🔎Explore Package🔎CDN Script

Score

Popularity43/100
Quality91/100
Maintenance100/100