# just-omit

> copy an object but omit the specified keys

Latest version **2.2.0** (published 2022-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install just-omit
pnpm add just-omit
yarn add just-omit
bun add just-omit
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2022-12-17 |
| First published | 2016-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6187 |
| Author | Angus Croll |
| Maintainers | angus-c |
| Keywords | object, omit, keys, no-dependencies, just |

## Links

- npm: https://www.npmjs.com/package/just-omit
- Repository: https://github.com/angus-c/just
- Homepage: https://github.com/angus-c/just#readme
- Issues: https://github.com/angus-c/just/issues
- npm.io page: https://npm.io/package/just-omit

## Recent versions

- 2.2.0 (latest) — 2022-12-17
- 2.1.2 — 2022-09-10
- 2.1.1 — 2022-08-08
- 2.1.0 — 2022-08-07
- 2.0.1 — 2021-11-13
- 2.0.0 — 2021-11-09
- 1.4.1 — 2021-11-01
- 1.4.0 — 2021-10-31
- 1.3.0 — 2021-10-30
- 1.2.0 — 2021-08-30
- 1.1.0 — 2018-08-09
- 1.0.1 — 2016-08-18
- 1.0.0 — 2016-08-17

## README

<!-- DO NOT EDIT THIS FILE! THIS FILE WAS AUTOGENERATED BY TEMPLATE-MATE -->
<!-- SEE https://github.com/angus-c/just/blob/master/CONTRIBUTING.md#readme-template -->

## just-omit

Part of a [library](https://anguscroll.com/just) of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.

[`🍦 Try it`](https://anguscroll.com/just/just-omit)

```shell
npm install just-omit
```
```shell
yarn add just-omit
```

Copy an object but omit the specified keys

```js
import omit from 'just-omit';

var obj = {a: 3, b: 5, c: 9};
omit(obj, ['a', 'c']); // {b: 5}
omit(obj, 'a', 'c'); // {b: 5}
omit(obj, ['a', 'b', 'd']); // {c: 9}
omit(obj, ['a', 'a']); // {b: 5, c: 9}
```

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