1.0.0 • Published 8 years ago
singular-or-plural v1.0.0
singular-or-plural
Select the singular or plural word based on the count.
Follows the following rule: If it ends with one but not eleven, it's singular.
Install
npm install schas002/singular-or-plural
Usage
var singularOrPlural = require("singular-or-plural");
singularOrPlural(42, "unicorn", "unicorns"); // ==> "unicorns"
Maintainer
- Andrew Zyabin - @schas002
Contribute
We'd love you on board! :D You just need to follow the code of conduct, which is: don't be rude.
License
1.0.0
8 years ago