- toFlatObject(sourceObj, destObj?, filter?, propFilter?): Record<string, unknown>
Parameters
sourceObj: null | Record<string, unknown> | Error
destObj: Record<string, unknown> = {}
Optional
filter: ((obj) => boolean)
- (obj): boolean
Parameters
obj: Record<string, unknown>
Returns boolean
Optional
propFilter: ((prop, sourceObj, destObj) => boolean)
- (prop, sourceObj, destObj): boolean
Parameters
prop: string
sourceObj: unknown
destObj: unknown
Returns boolean
Returns Record<string, unknown>