UNPKG

@studiohyperdrive/utils

Version:
19 lines (18 loc) 993 B
/** * Searches a given value for any potential matches * * @param value - The value to search * @param searchTerm - The value we want to use for searching (will be splitted on space) * @param normalized - Should the search be done on normalized values? * @param caseInsensitive - Should the search be done case-sensitive or not? */ export declare const searchValueForSome: (value: string | undefined | null, searchTerm: string, normalized?: boolean, caseInsensitive?: boolean) => boolean; /** * Searches a given value for all potential matches * * @param value - The value to search * @param searchTerm - The value we want to use for searching (will be splitted on space) * @param normalized - Should the search be done on normalized values? * @param caseInsensitive - Should the search be done case-sensitive or not? */ export declare const searchValueForEvery: (value: string | undefined | null, searchTerm: string, normalized?: boolean, caseInsensitive?: boolean) => boolean;