Returns the singular or plural form of the word based on the input number
pluralize('apple'); // 'apples'
pluralize('apple', 0); // 'apples'
pluralize('apple', 1); // 'apple'
pluralize('apple', 2); // 'apples'
pluralize('person', 2); // 'people'
pluralize('people', 1); // 'person'
Optional
Generated using TypeDoc
Returns the singular or plural form of the word based on the input number
Example
Example
Example
Example
Example
Example