# array-differ

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

Latest version **4.0.0** (published 2021-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install array-differ
pnpm add array-differ
yarn add array-differ
bun add array-differ
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2021-08-10 |
| First published | 2014-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 40 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | array, difference, diff, differ, filter, exclude |

## Links

- npm: https://www.npmjs.com/package/array-differ
- Repository: https://github.com/sindresorhus/array-differ
- Homepage: https://github.com/sindresorhus/array-differ#readme
- Issues: https://github.com/sindresorhus/array-differ/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/array-differ

## Recent versions

- 4.0.0 (latest) — 2021-08-10
- 3.0.0 — 2019-04-08
- 2.1.0 — 2019-03-02
- 2.0.3 — 2016-04-27
- 2.0.2 — 2016-04-27
- 2.0.1 — 2016-04-27
- 2.0.0 — 2016-04-27
- 1.0.0 — 2014-08-13
- 0.1.0 — 2014-06-20

## 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

```js
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.

---

<div align="center">
	<b>
		<a href="https://tidelift.com/subscription/pkg/npm-array-differ?utm_source=npm-array-differ&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
	</b>
	<br>
	<sub>
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
	</sub>
</div>

---
_Source: https://npm.io/package/array-differ · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
