@tempots/std
containsAnyText() function
containsAnyText
returns true
if s
contains any of the strings in tests
Signature:
containsAnyText: (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
, false
otherwise.