( count: number | bigint, singular: string, plural: string, )
| 89 | * Returns singular if count is exactly 1, otherwise returns plural. |
| 90 | */ |
| 91 | export function pluralize( |
| 92 | count: number | bigint, |
| 93 | singular: string, |
| 94 | plural: string, |
| 95 | ) { |
| 96 | if (count === 1) { |
| 97 | return singular; |
| 98 | } |
| 99 | return plural; |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Capitalizes a string by capitalizing the first letter and optionally appending a period. |
no outgoing calls
no test coverage detected