Module

x/rambda/immutable.d.ts>omit

Faster and smaller alternative to Ramda
Go to Latest
function omit
import { omit } from "https://dotland.deno.dev/x/rambda@v9.2.0/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