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