UNPKG
@librecoder/tools
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0

@librecoder/tools
/
src
/
string.js
4 lines
(3 loc)
•
65 B
JavaScript
View Raw
1
2
3
4
export
function
trim
(
s
) {
return
s.
replace
(
/^\s+|\s+$/gm
,
''
) }