Jacky Zhao
2023-09-20 6a9e6352e88aa9ff18e5b33cf2de442a250bd960
1
2
3
4
5
6
7
export function pluralize(count: number, s: string): string {
  if (count === 1) {
    return `1 ${s}`
  } else {
    return `${count} ${s}s`
  }
}