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
/
rtrim.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
rtrim(" bac ") => " bac" */
declare
const
rtrim
:
(
str
:
string
) =>
string
;
export
default
rtrim;