> 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 (Functional Programming) es-toolkit

Creates a function that removes the given keys from an object. Use it with [`pipe`](https://massaman.dev/reference/fp/pipe.md).

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

::: info

Prefer the original es-toolkit [`omit`](https://massaman.dev/reference/object/omit.md) in ordinary code. Use this `fp` variant when composing transformations with [`pipe`](https://massaman.dev/reference/fp/pipe.md).

:::

## Usage

`omit` returns a new object with the specified `keys` removed from the input object.

```typescript
import { omit, pipe } from 'es-toolkit/fp';

pipe({ a: 1, b: 2, c: 3 }, omit(['b', 'c'])); // => { a: 1 }
```

#### Parameters


keysreadonly K[]required

The keys to exclude from the new object.

#### Returns

A function that maps an object `T` to a new object without the omitted keys.

```typescript
(obj: T) => Omit<T, K>
```


Source: es-toolkit

Re-exported verbatim from [`es-toolkit`](https://es-toolkit.dev/fp/reference/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.
