Search Docs
trimEnd
Removes whitespace from the right end of the str.
str
import { trimEnd } from 'funtool/string' trimEnd('hello '); // ✅ 'hello' trimEnd(''); // ✅ '' trimEnd(123) // => '123' ✅
function trimEnd(str: string): string
string