Pluralize Word

Add a plural suffix to a word based on the given count.

Code

Utilities
`${count} ${word}${count === 1 ? '' : 's'}`;

Parameters

Word to pluralize.

Count for pluralization.

Browser·fetch() may be limited by CORS

More JavaScript Snippets