3 lines
165 B
TypeScript
Raw Normal View History

2018-04-02 05:34:16 +00:00
export function plural(count: number, singular: string): string {
return (count === 1 || count === -1) ? (count + " " + singular) : (count + " " + singular + "s")
}