Back to Strings
endswith
Test if a string ends with a suffix.
Syntax
endswith(s, suffix) → true if s ends with suffix
Backends
TypeScript
Description
Test if a string ends with a suffix.
Parameters
| Name | Description |
|---|---|
| s | Input string |
| suffix | Suffix to test |
Returns
true if s ends with suffix