( n: number, word: string, pluralWord = word + 's', )
| 30 | * @example plural(2, 'entry', 'entries') → 'entries' |
| 31 | */ |
| 32 | export function plural( |
| 33 | n: number, |
| 34 | word: string, |
| 35 | pluralWord = word + 's', |
| 36 | ): string { |
| 37 | return n === 1 ? word : pluralWord |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Returns the first line of a string without allocating a split array. |
no outgoing calls
no test coverage detected