@tempots/std
textStartsWithCaseInsensitive() function
Checks if a string starts with another string in a case-insensitive manner.
Signature:
textStartsWithCaseInsensitive: (s: string, start: string) => boolean
Parameters
Parameter |
Type |
Description |
---|---|---|
s |
string |
The string to check. |
start |
string |
The string to compare with the start of |
Returns: boolean
true
if s
starts with start
(case-insensitive), false
otherwise.