🎯 Creates an object composed of the object properties that do not satisfy the predicate.
Syntax
import { omitBy } from '@opentf/std';
omitBy<T extends object>(
obj: T,
predicate: (value: any, key: string) => boolean
): Partial<T>;Parameters
obj: The source object.predicate: The function invoked per iteration.
Returns
A new object with omitted properties.
Examples
const object = { a: 1, b: 'abc', c: 3 };
omitBy(object, (v) => typeof v === 'number')
//=> { b: 'abc' }