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

x/rambda/immutable.d.ts>omit

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

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

Type Parameters

T
K extends string

Parameters

propsToOmit: readonly K[]
obj: T

Returns

Omit<T, K>

Type Parameters

K extends string

Parameters

propsToOmit: readonly 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