Javascript String chomp()

Description

Javascript String chomp()


String.prototype.chomp = function() {
  return this.replace(/(\n|\r)+$/, '');
}



PreviousNext

Related