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