Gitiles
Code Review
Sign In
git.clicks.codes
/
Clicks
/
Nucleus
/
6702cefc3755bfe27a1687f03bea3bedc68da746
/
.
/
src
/
utils
/
plurals.ts
blob: f9560575ecdf9c9de347979f2843b71b2864e4bf [
file
] [
log
] [
blame
]
pineafan
e625d78
2022-05-09 18:04:32 +0100
[
diff
] [
blame
]
1
function
addPlural
(
amount
:
any
,
unit
:
string
)
{
2
if
(
amount
===
'1'
)
return
`${amount} ${unit}`
3
return
`${amount} ${unit}s`
4
}
5
6
export
default
addPlural
;