Menu
Open source

trim_suffix

trim_suffix removes the suffix from the end of a string.

Examples

alloy
> trim_suffix("helloworld", "world")
"hello"