UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
string
/
withSuffix.ts
5 lines
(3 loc)
•
255 B
text/typescript
View Raw
1
2
3
4
5
export
const
withSuffix
= (
$name
:
string
,
$suffix
:
string
) =>
$suffix
?
$name
+
' '
+
$suffix
:
$name
// eslint-disable-next-line @typescript-eslint/ban-types
export
const
withSuffixF
= (func: Function,
$suffix
:
string
) =>
withSuffix
(func.name,
$suffix
)