ends with
checks if a string ends with a given suffix
(string subject, string suffix) -> boolean
Returns true if subject ends with suffix. Returns false otherwise.
Returns nil if any argument is nil.
Returns true for any non-nil subject if suffix is the empty string.
Parameters
| Name | Type | Description |
|---|---|---|
subject |
string | The string to inspect |
suffix |
string | The suffix to check for |