Javascript String slimNTidy(spacer)

Description

Javascript String slimNTidy(spacer)

String.prototype.slimNTidy = function (spacer) {
  var str;/*w w w  .  j  a  v a 2 s .c  o  m*/

  str = this;
  str = str.trim();
  str = str.slim(spacer);
  return str;
};



PreviousNext

Related