UNPKG

@mikezimm/npmfunctions

Version:
15 lines (14 loc) 690 B
/** * findPropFromSimilarKey * @param obj * @param anyKeyCase * @param test contains means the obj.key is contained in the checkKey - * Original use case: Look to see if the current web Url is contained in DefaultBannerThemes * checkKey (aka findKey = full url: /sites/sitecollection/subsite/etc ) * Object.key ( /sites/sitecollection/ ) * Contains will find this Object.key in the checkKey string and return the value. * @param checkKey * @param defValue * @returns */ export declare function findPropFromSimilarKey(obj: any, anyKeyCase: boolean, checkKey: string, test: 'eq' | 'containsObjKey' | 'isContainedInObjKey', defValue: any): any;