Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 593 Bytes

File metadata and controls

34 lines (18 loc) · 593 Bytes

ts-humanize v1.0.0


ts-humanize / plural

Function: plural()

plural(quantity, singular, plural?): string

Defined in: english/words.ts:80

plural formats an integer and a string into a single pluralized string.

The simple English rules of regular pluralization will be used if the plural form is empty/undefined.

Parameters

quantity

number

singular

string

plural?

string

Returns

string