@tempots/std
containsAnyTextCaseInsensitive() function
containsAnyTextCaseInsensitive
returns true
if s
contains any of the strings in tests
regardless of the text case
Signature:
containsAnyTextCaseInsensitive: (s: string, tests: string[]) => boolean
Parameters
Parameter |
Type |
Description |
---|---|---|
s |
string |
The string to search in. |
tests |
string[] |
The strings to search for. |
Returns: boolean
true
if s
contains any of the strings in tests
(case-insensitive), false
otherwise.