🎯 The opposite of pick; this method creates an object composed of the own and inherited enumerable property paths of object that are not omitted.
The source object can be a `Plain Object` or an `Array`.
Syntax
import { omit } from '@opentf/std';
omit<T extends object>(
obj: T,
...paths: (string | unknown[])[]
): Partial<T>;Parameters
obj: The source object or array....paths: The property paths to omit.
Returns
A new object or array without the omitted properties.
Examples
omit({ a: 1, b: 2, c: 3 }, 'a', 'c') //=> { b: 2 }
omit([1, 2, 3], '1') //=> [1, 3]