Noogλe :: 2024
search input
Function of the day
Return a string without the specified suffix, if the suffix matches.
Inputs
suffix-
Suffix to remove if it matches
str-
Input string
Type
string -> string -> stringExamples
removeSuffixusage exampleremoveSuffix "front" "homefront" => "home" removeSuffix "xxx" "homefront" => "homefront"