( word: string, count: number, ending = 's', )
| 6 | */ |
| 7 | |
| 8 | export default function pluralize( |
| 9 | word: string, |
| 10 | count: number, |
| 11 | ending = 's', |
| 12 | ): string { |
| 13 | return `${count} ${word}${count === 1 ? '' : ending}`; |
| 14 | } |
no outgoing calls
no test coverage detected