@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
15 lines • 727 B
TypeScript
/**
* 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;
//# sourceMappingURL=similar.d.ts.map