Search Docs
trimEnd
移除 str 右端的空白字符。
str
import { trimEnd } from 'funtool/string' trimEnd('hello '); // ✅ 'hello' trimEnd(''); // ✅ '' trimEnd(123) // => '123' ✅
function trimEnd(str: string): string
string