Absolutely teeny tiny TypeScript omit function based on this answer from anurbol.
import { omit } from "omit-ts";
const source = {
foo: "foo",
bar: "bar",
};
const only_foo = omit(source, ["bar"]);
Absolutely teeny tiny TypeScript omit function based on this answer from anurbol.
import { omit } from "omit-ts";
const source = {
foo: "foo",
bar: "bar",
};
const only_foo = omit(source, ["bar"]);