mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 08:13:27 +01:00
7 lines
130 B
TypeScript
7 lines
130 B
TypeScript
export function pluralize(word: string, count: number): string {
|
|
if (count === 1) {
|
|
return word;
|
|
}
|
|
return `${word}s`;
|
|
}
|