Removes trailing slashes (/ and ``) from the given path string.
/
The path string from which trailing slashes need to be removed.
The path string with trailing slashes removed. If the input string is falsy, it returns the original string.
4.0.0
2025-07-03
Removes trailing slashes (
/
and ``) from the given path string.