Javascript String pluralize(count, plural)

Description

Javascript String pluralize(count, plural)



String.prototype.pluralize = function(count, plural)
{
    if (plural == null)
          plural = this + 's';

      return (count == 1 ? this : plural)
}



PreviousNext

Related