import { omit } from "https://deno.land/x/ayonli_jsext@v0.9.72/object/index.ts";
Creates an object composed without the picked keys.
NOTE:
This function only collect keys from the object's own properties, except for type Error,
whose name
, message
and cause
are always collected.
Examples
Example 1
Example 1
import { omit } from "@ayonli/jsext/object";
const obj = { foo: "Hello", bar: "World" };
console.log(omit(obj, ["foo"])); // { bar: "World" }
Type Parameters
U extends keyof T