@tremendous/help
    Preparing search index...

    Function countLabel

    • Format a count with thousands separators and pluralize the associated word.

      Parameters

      • count: number
      • word: string

      Returns string

      countLabel(1, "card") // "1 card"
      countLabel(1234, "product") // "1,234 products"
      countLabel(2500, "recipient") // "2,500 recipients"