A11yWatch/a11ywatch-core

View on GitHub
src/core/utils/pluralize.ts

Summary

Maintainability
A
0 mins
Test Coverage
// determine if string should be plural
export const pluralize = (count: number, text: string) =>
  `${text}${count === 1 ? "" : "s"}`;