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

x/fun/record.ts>omit

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function omit
import { omit } from "https://deno.land/x/fun@v2.0.0/record.ts";

Omit specified keys from a record. Value-space implementation of the Omit utility type.

Examples

Example 1

import { omit } from "./record.ts";
omit("a", "c")({ a: 1, b: 2 }) // { b: 2 }

Type Parameters

T
K extends string[]

Parameters

...keys: K

Returns

(record: T) => Omit<T, K[number]>