Skip to main content
Module

x/froebel/omit.ts>default

A strictly typed utility library.
Go to Latest
variable default
import { default } from "https://deno.land/x/froebel@v0.19.0/omit.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>