# trim

去掉字符串首尾空格

import { trim } from '@hui-pro/utils';
trim(string);

# API

参数 说明 类型 默认值 可选值
string 需要处理的字符串 String - -