@w5s/coreFunctionsomitomit Callableomit<T, K>(self: Readonly<T>, keys: readonly K[]): Omit<T, K>Creates a new object by excluding the specified keys from the provided object.@exampleconst object = { foo: true, bar: true, baz: true };omit(object, ['foo']); // { bar: true, baz: true };omit(object, ['foo', 'bar']); // { baz: true };console.log(object); // > { foo: true, bar: true, baz: true }; (unchanged)Type parametersT: objectK: string | number | symbol
Creates a new object by excluding the specified keys from the provided object.