Search Docs
trim
Removes whitespace from both ends of the str.
str
import { trim } from 'funtool/string' trim(' hello ') // => 'hello' ✅ trim(123) // => '123' ✅
function trim(str: string): string
string