UNPKG

@mikezimm/npmfunctions

Version:
11 lines (10 loc) 581 B
export declare type IReturnErrorType = 'Actual' | 'FullError' | 'ShortError' | 'EmptyString'; /** * checkDeepProperty - Originally built for Pivot Tiles banner component * Checks for sub-sub-property of object by going one layer at a time to avoid undefined error * * @param obj - parent object you want to check * @param keys - key array to check (parent.check.this keys are ['check','this'] ) * @param errReturnType - what to do when there is an error */ export declare function checkDeepProperty(obj: any, keys: string[], errReturnType: IReturnErrorType): any;