UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
function.ts
8 lines
(5 loc)
•
178 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
voca
from
'voca'
const
{ kebabCase, titleCase } = voca
export
function
humanize
(
functionName: string
) {
return
titleCase
(
kebabCase
(functionName)).
replace
(
/-/g
,
' '
) }