In java, I can do it with commons-lang:
StringUtils.stripEnd(" abc \t", null) // => " abc"
I want to know if there is any built-in method to do this in scala, or how to do it in scala without any 3rd-party dependencies?
In java, I can do it with commons-lang:
StringUtils.stripEnd(" abc \t", null) // => " abc"
I want to know if there is any built-in method to do this in scala, or how to do it in scala without any 3rd-party dependencies?