UNPKG
js-wrench
Version:
latest (1.3.1)
1.3.1
1.3.0
1.2.2
1.2.1
JS函数库
js-wrench
/
d.ts
/
modules
/
ltrim.d.ts
10 lines
(9 loc)
•
288 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** *
@description
对字符串左边去空格 * *
@param
{
string
} str 传入一个字符串 *
@return
{
*
} {
string
} 返回一个左边没有空格的新的字符串 *
@example
ltrim(" abc ") => "abc " */
declare
const
ltrim
:
(
str
:
string
) =>
string
;
export
default
ltrim;