export default function pluralize(count: number, single: string, plural: string, zero?: string): string { if (count === 0 && zero) { return zero.replace('$$', '0'); } if (count === 1) { return single.replace('$$', '1'); } return plural.replace('$$', String(count)); } href='https://git.anshulg.com/ansg191/bun/atom/integration/bunjs-only-snippets/transpiler.test.js?h=dylan/github-api-option' type='application/atom+xml'/>
![]() |
index : bun | |
| Unnamed repository; edit this file 'description' to name the repository. |
| aboutsummaryrefslogtreecommitdiff |