Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/mod.ts>omit

Faster and smaller alternative to Ramda
Go to Latest
function omit
import { omit } from "https://deno.land/x/rambda@9.2.1/mod.ts";

It returns a partial copy of an obj without propsToOmit properties.

Type Parameters

T
K extends string

Parameters

propsToOmit: K[]
obj: T

Returns

Omit<T, K>

Type Parameters

K extends string

Parameters

propsToOmit: K[]

Returns

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

Parameters

propsToOmit: string
obj: T

Parameters

propsToOmit: string

Returns

(obj: T) => U

Parameters

propsToOmit: string
obj: object

Parameters

propsToOmit: string

Returns

(obj: object) => T