Files
linear__linear-release/src/util.ts
T
Romain Cascino a3bb3337a8 Initial commit
2026-02-04 13:22:36 +00:00

10 lines
271 B
TypeScript

/**
* Pluralize a word based on the count.
* @param count - The count of the word.
* @param word - The word to pluralize.
* @returns The pluralized word.
*/
export function pluralize(count: number, word: string): string {
return count === 1 ? word : `${word}s`;
}