Take a string and pluralize it depending on a count
pluralize('cake', 1) === 'cake'
pluralize('cake', 2) === 'cakes'
pluralize('cake', 0) === 'cakes'
pluralize('child', 2, 'children') === 'children'
The singular form of the word
The amount of things you have
Optionally, a plural form of the word. This is str with an s on the end by default.
str
s
Generated using TypeDoc
Take a string and pluralize it depending on a count
Example
Example
Example
Example