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