/omit-ts

Absolutely teeny tiny TypeScript omit function.

Primary LanguageTypeScriptMIT LicenseMIT

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"]);