Javascript String removeSpacesAndToLower()

Description

Javascript String removeSpacesAndToLower()


String.prototype.removeSpacesAndToLower = function () {
 return this.replace(/\s+/g, '-').toLowerCase();
}



PreviousNext

Related