Javascript String trimLR=function()

Description

Javascript String trimLR=function()


String.prototype.trimLR=function(){
  return this.replace(/(^\s*)(\s*$)/g,'');
}



PreviousNext

Related