@tempots/std
stringEndsWithAny() function
Returns true
if s
ends with any of the values in values
.
Signature:
stringEndsWithAny: (s: string, values: string[]) => boolean
Parameters
Parameter |
Type |
Description |
---|---|---|
s |
string |
The string to compare. |
values |
string[] |
The values to compare with the end of |
Returns: boolean
true
if s
ends with any of the values in values
, false
otherwise.