In PHP, I use Kuwamoto\'s class to pluralize nouns in my strings. I didn\'t find something as good as this script in javascript except for some plugins. So, it would be grea
I use this simple inline statement
const number = 2; const string = `${number} trutle${number === 1 ? "" : "s"}`; //this one console.log(string)