Javascript String plural()

Description

Javascript String plural()


// -- String//ww  w.ja va  2  s  . c om

/* Pseudo Pluralize */
String.prototype.plural = function() {
  return this + 's';
};



PreviousNext

Related