Removes all occurrences of needle from the end of haystack.
rtrim('Helloabcabc', 'abc'); //=> 'Hello' rtrim(' Hello '); //=> ' Hello'
string to trim
the thing to trim
Generated using TypeDoc
Removes all occurrences of needle from the end of haystack.