omitBy
Creates a new object by omitting properties from the original object where the predicate function returns true
. Supports both string and symbol keys.
obj
(T extends object
): The source object to process.predicate
((value: T[keyof T], key: keyof T) => boolean
): Function that determines which properties to omit.Partial<T>
): A new object without the omitted properties.