StringRemoveSuffixExtension extension

on

Methods

removeSuffix(String suffix) String

Available on String, provided by the StringRemoveSuffixExtension extension

If this String ends with the given suffix, returns a copy of this String with the suffix removed. Otherwise, returns this String.