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

x/froebel/mod.ts>omit

A strictly typed utility library.
Go to Latest
variable omit
import { omit } from "https://deno.land/x/froebel@v0.21.3/mod.ts";

From obj, create a new object that does not include keys.

Examples

Example 1

omit({ a: 1, b: 2, c: 3 }, 'a', 'c') // { b: 2 }

type

<T, K extends keyof T>(obj: T, ...keys: K[]) => Omit<T, K>