Type Parameters
- T extends Record<string, unknown>
Parameters
- obj: T
- callback: ((value: T[keyof T], key: keyof T, obj: T) => boolean)
- (value, key, obj): boolean
Parameters
- value: T[keyof T]
- key: keyof T
- obj: T
Returns boolean
Returns Partial<T>
An object containing the properties for which the callback function
returned a value that evaluates to true.
Similar to Array.filter, except that it filters an object's own enumerable properties.