# object-omit

> Return a copy of an object without the given key, or array of keys.

Latest version **1.0.0** (published 2015-02-14) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-02-14 |
| First published | 2014-10-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 77 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | clear, delete, key, value, object, omit, property, remove |

## Links

- npm: https://www.npmjs.com/package/object-omit
- Repository: https://github.com/jonschlinkert/object-omit
- Issues: https://github.com/jonschlinkert/object-omit/issues
- npm.io page: https://npm.io/package/object-omit

## Dependencies (2)

- [for-own](https://npm.io/package/for-own.md) ^0.1.2
- [isobject](https://npm.io/package/isobject.md) ^0.2.0

## Recent versions

- 1.0.0 (latest) — 2015-02-14
- 0.2.0 — 2014-10-06
- 0.1.1 — 2014-10-01

## README

# object-omit [![NPM version](https://badge.fury.io/js/object-omit.svg)](http://badge.fury.io/js/object-omit)

> Return a copy of an object without the given key, or array of keys.

## Install
### Install with [npm](npmjs.org):

```bash
npm i object-omit --save-dev
```


## Usage

```js
var omit = require('object-omit');
```

Pass a string `key` to omit:

```js
omit({a: 'a', b: 'b', c: 'c'}, 'a')
//=> { b: 'b', c: 'c' }
```

Pass an array of `keys` to omit:

```js
omit({a: 'a', b: 'b', c: 'c'}, ['a', 'c'])
//=> { b: 'b' }
```

Returns the object if no keys are passed:

```js
omit({a: 'a', b: 'b', c: 'c'})
//=> {a: 'a', b: 'b', c: 'c'}
```

Returns an empty object if no value is passed.

```js
omit()
//=> {}
```

## Runing tests

Install dev dependencies:

```bash
npm i -d && npm test
```

## Author

**Jon Schlinkert**
 
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 

### Other javascript/node.js utils

Other projects that I maintain:

  - [arr](https://github.com/jonschlinkert/arr)
  - [arr-diff](https://github.com/jonschlinkert/arr-diff)
  - [array-last](https://github.com/jonschlinkert/array-last)
  - [array-slice](https://github.com/jonschlinkert/array-slice)
  - [array-sum](https://github.com/jonschlinkert/array-sum)
  - [arrayify-compact](https://github.com/jonschlinkert/arrayify-compact)
  - [compact-object](https://github.com/jonschlinkert/compact-object)
  - [delete](https://github.com/jonschlinkert/delete)
  - [for-in](https://github.com/jonschlinkert/for-in)
  - [for-own](https://github.com/jonschlinkert/for-own)
  - [has-any](https://github.com/jonschlinkert/has-any)
  - [has-value](https://github.com/jonschlinkert/has-value)
  - [is-number](https://github.com/jonschlinkert/is-number)
  - [is-plain-object](https://github.com/jonschlinkert/is-plain-object)
  - [mixin-deep](https://github.com/jonschlinkert/mixin-deep)
  - [mixin-object](https://github.com/jonschlinkert/mixin-object)
  - [object-length](https://github.com/jonschlinkert/object-length)
  - [omit-empty](https://github.com/jonschlinkert/omit-empty)
  - [reduce-object](https://github.com/jonschlinkert/reduce-object)


## License
Copyright (c) 2014-2015 Jon Schlinkert  
Released under the MIT license

***

_This file was generated by [verb](https://github.com/assemble/verb) on February 13, 2015._

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