:sig
function str_ends_with(haystack : string, needle : string) bool

:returns
`true` when the text ends with the suffix.

:content
Use `str_ends_with` to test a string suffix.

:example capy render
print(str_ends_with("index.capy", ".capy"), "\n")

:see-group
strings
