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

x/rambda/index.d.ts>dissoc

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

It returns a new object that does not contain property prop.

Type Parameters

K extends PropertyKey

Returns

<U extends [P in K]?: any>(obj: string extends keyof U ? U : undefined extends U[K] ? U : never) => U

Type Parameters

U
K extends keyof U

Parameters

prop: string extends keyof U ? K : undefined extends U[K] ? K : never
obj: U