> For AI agents: the complete documentation index is available at https://massaman.dev/llms.txt, the full documentation bundle is available at https://massaman.dev/llms-full.txt.

# omit es-toolkit

Returns a new object excluding the specified keys.

```typescript
const result = omit(obj, keys);
```

## Usage

### `omit(obj, keys)`

Use `omit` when you want to exclude specific keys from an object. It returns a new object with the properties corresponding to the specified keys removed.

```typescript
import { omit } from 'es-toolkit/object';

// Exclude specific keys
const obj = { a: 1, b: 2, c: 3, d: 4 };
const result = omit(obj, ['b', 'c']);
// result is { a: 1, d: 4 }

// Specifying non-existent keys doesn't cause an error
const safe = omit(obj, ['b', 'nonexistent']);
// safe is { a: 1, c: 3, d: 4 }
```

#### Parameters


objT extends Record<string, any>required

The object to exclude keys from.


keysreadonly K[]required

An array of keys to exclude from the object.

#### Returns

A new object with the specified keys excluded.

```typescript
Omit<T, K>
```


Source: es-toolkit

Re-exported verbatim from [`es-toolkit`](https://es-toolkit.dev/reference/object/omit.html). Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.
