# @extra-set/difference

> Gives values of set not present in others.

Latest version **2.2.11** (published 2021-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @extra-set/difference
pnpm add @extra-set/difference
yarn add @extra-set/difference
bun add @extra-set/difference
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.2.11 |
| Published | 2021-02-05 |
| First published | 2020-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | extra, set, difference |

## Links

- npm: https://www.npmjs.com/package/@extra-set/difference
- Repository: https://github.com/nodef/extra-set
- Homepage: https://github.com/nodef/extra-set#readme
- Issues: https://github.com/nodef/extra-set/issues
- npm.io page: https://npm.io/package/@extra-set/difference

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.2.11 (latest) — 2021-02-05
- 2.2.10 — 2021-02-03
- 2.2.9 — 2021-02-03
- 2.2.8 — 2021-02-03
- 2.2.7 — 2021-02-03
- 2.2.5 — 2020-12-16
- 2.2.4 — 2020-09-14
- 2.2.3 — 2020-06-29
- 2.2.2 — 2020-06-29
- 2.2.1 — 2020-06-27
- 2.2.0 — 2020-06-27
- 2.1.63 — 2020-06-27
- 2.1.62 — 2020-06-27
- 2.1.61 — 2020-06-27
- 2.1.60 — 2020-06-18
- … 70 more at https://npm.io/package/@extra-set/difference/versions

## README

Gives values of set not present in others.
[:package:](https://www.npmjs.com/package/@extra-set/difference)
[:smiley_cat:](https://github.com/orgs/nodef/packages?repo_name=extra-set)
[:running:](https://npm.runkit.com/@extra-set/difference)
[:vhs:](https://asciinema.org/a/339309)
[:moon:](https://www.npmjs.com/package/@extra-set/difference.min)
[:scroll:](https://unpkg.com/@extra-set/difference/)
[:newspaper:](https://nodef.github.io/extra-set/)
[:blue_book:](https://github.com/nodef/extra-set/wiki/)

> Alternatives: [difference], [difference$].<br>
> Similar: [union], [intersection], [difference], [symmetricDifference], [isDisjoint].

> This is part of package [extra-set].

[extra-set]: https://www.npmjs.com/package/extra-set

<br>

```javascript
set.difference(x, y);
// x: a set
// y: another set
```

```javascript
const set = require("extra-set");

var x = new Set([1, 2, 3, 4, 5]);
var y = new Set([2, 4]);
set.difference(x, y);
// Set(3) { 1, 3, 5 }

var y = new Set([2, -4]);
set.difference(x, y);
// Set(4) { 1, 3, 4, 5 }
```

<br>
<br>


## References

- [Data.List.\\: Haskell](https://hackage.haskell.org/package/base-4.12.0.0/docs/Data-List.html#v:-92--92-)
- [Data.Set.difference: Haskell](http://hackage.haskell.org/package/containers-0.6.2.1/docs/Data-Set.html#v:difference)
- [Set.difference: Python](https://www.programiz.com/python-programming/methods/set/difference)
- [_.difference: lodash](https://lodash.com/docs/4.17.15#difference)
- [_.differenceBy: lodash](https://lodash.com/docs/4.17.15#differenceBy)
- [_.differenceWith: lodash](https://lodash.com/docs/4.17.15#differenceWith)
- [Array.remove: sugarjs](https://sugarjs.com/docs/#/Array/remove)

[difference]: https://github.com/nodef/extra-set/wiki/difference
[difference$]: https://github.com/nodef/extra-set/wiki/difference$
[union]: https://github.com/nodef/extra-set/wiki/union
[intersection]: https://github.com/nodef/extra-set/wiki/intersection
[symmetricDifference]: https://github.com/nodef/extra-set/wiki/symmetricDifference
[isDisjoint]: https://github.com/nodef/extra-set/wiki/isDisjoint

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