@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
10 lines (9 loc) • 683 B
TypeScript
/**
* complexStringFilter - Loosely built off of BuildTileCollection - isVisibleItem function in PivotTiles
* @param testThis - looking for this text
* @param againstThis - in this string
* @param testSplitter - parser like ';', or ',' or ';or,', if it finds ANY match, it returns true
* @param notEqualString - test for not equal like '<>' or '!=', if any parsed tests include notEqual, then it returns false
* @param anyCase - true converts all to lowerCase() for comparison first. Else it is case sensitive
*/
export declare function complexStringSearch(testThis: string, againstThis: string, testSplitter: string, notEqualString: string, anyCase: boolean): any;