Function
string.EndsWith
Test whether this string ends with given string
Syntax
string.EndsWith(other_string)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other_string
|
string | — | The given string |
Returns
- boolean
Examples
local str = "awesome text!",local ends = str:EndsWith("text!")