Applies a plural suffix to a word if the quantity is not exactly 1 or -1.
The numerical quantity or an object containing values
The singular word
The explicitly provided plural form (defaults to word + 's')
The appropriate singular or plural string
plural(2, 'apple'); // 'apples' Copy
plural(2, 'apple'); // 'apples'
Applies a plural suffix to a word if the quantity is not exactly 1 or -1.