Trims the given suffix from the given string. Related: trimRight.
The string to trim.
The suffix to trim from s.
s
The maximum number of times to trim the suffix (default is 1), a value less than zero indicates no limit.
1
Trims the given suffix from the given string. Related: trimRight.