UNPKG
consecteturquia
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
twind monorepo
github.com/ShanyArmstrong/consecteturquia
ShanyArmstrong/consecteturquia
consecteturquia
/
packages
/
intellisense
/
src
/
internal
/
spacify.ts
4 lines
(3 loc)
•
123 B
text/typescript
View Raw
1
2
3
4
export
function
spacify
(
value
:
string
):
string
{
return
(value[
0
] ===
'-'
?
'- '
:
''
) + value.
replace
(
/[-\s]+/g
,
' '
) }