Skip to content

Absolutely teeny tiny TypeScript omit function.

License

Notifications You must be signed in to change notification settings

mirshko/omit-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

omit-ts

npm npm bundle size NPM

Absolutely teeny tiny TypeScript omit function based on this answer from anurbol.

Usage

import { omit } from "omit-ts";

const source = {
  foo: "foo",
  bar: "bar",
};

const only_foo = omit(source, ["bar"]);