Gitiles
Code Review
Sign In
git.clicks.codes
/
Clicks
/
Nucleus
/
3a63d7c34ec704e1bbc7c605e054afb0237e78e1
/
.
/
src
/
utils
/
plurals.ts
blob: f9560575ecdf9c9de347979f2843b71b2864e4bf [
file
] [
log
] [
blame
]
function
addPlural
(
amount
:
any
,
unit
:
string
)
{
if
(
amount
===
'1'
)
return
`${amount} ${unit}`
return
`${amount} ${unit}s`
}
export
default
addPlural
;