简体中文
主题
去除字符串首尾空白。
import { trim } from 'js-cool'
function trim(string: string): string
string
string - 修剪后的字符串。
trim(' hello ') // 'hello' trim('\nhello\n') // 'hello'