JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6470177
  • Score
    100M100P100Q214263F
  • License MIT

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

Package Exports

  • array-differ

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (array-differ) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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