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