UNPKG
vash
Version:
beta (0.8.0-beta)
latest (0.13.0)
0.13.0
0.12.10
0.12.9
0.12.8
0.12.6
0.12.5
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.9
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.1
0.8.0
0.8.0-beta
0.7.12-1
0.7.11-3
0.7.10-2
0.7.9-7
0.7.9-4
0.7.9-1
0.7.8-2
0.7.7
0.7.6-3
0.7.5-2
0.7.4-19
0.7.4-0
0.7.2-89
0.7.0-35
0.6.4-2631
0.6.2-2482
0.6.0-2085
0.5.15-1896
0.5.14-1803
0.5.13-1800
0.5.12-1773
0.5.11-1767
0.5.10-1739
0.5.9-1729
0.5.7-1547
0.5.6-1545
0.5.6-1544
0.5.6-1543
0.5.5-1514
0.5.4-1386
0.5.4-1385
0.5.3-1294
0.5.3-1292
0.5.3-1272
0.5.3-1255
0.5.2-1239
0.5.2-1238
0.5.2-1237
0.5.2-1236
0.5.2-1232
0.5.2-1183
0.5.2-1182
0.4.5-977
0.4.4-926
0.4.3-915
0.4.2-856
0.4.1-826
0.3.1-327
0.3.0-291
0.2.2
0.2.1
Razor syntax for JS templating
github.com/kirbysayshi/vash
kirbysayshi/vash
vash
/
lib
/
helpers
/
trim.js
6 lines
(5 loc)
•
174 B
JavaScript
View Raw
1
2
3
4
5
6
var
helpers =
require
(
'../../runtime'
).
helpers
;
// Trim whitespace from the start and end of a string
helpers.
trim
=
function
(
val
){
return
val.
replace
(
/^\s*|\s*$/g
,
''
); }