startsWith¶
Checks if the 1st string ends with the one specified in the 2nd.
Parameters:
No. | Type | Comments |
---|---|---|
1 | string | Main string |
2 | string | Prefix value |
Returns:
boolean
- True if the 1st parameter starts with the 2nd.
Usages:
startsWith( val : string, prefix : string) : boolean