Nymbo's picture
Sync with upstream huggingface-projects/inference-playground (node 22, current Svelte app)
4e2820e verified
Raw History Blame Contribute Delete
125 Bytes
export function pluralize(word: string, count: number): string {
if (count === 1) {
return word;
}
return word + "s";
}