tree: 47b9f60fb96398328505e1c5d8dfb106959209dd [path history] [tgz]
  1. index.d.ts
  2. index.js
  3. license
  4. package.json
  5. readme.md
node_modules/array-differ/readme.md

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