Javascript String transform()

Description

Javascript String transform()


String.prototype.transform = function() {
 return this.trim().toLowerCase().replace(/[\s]+/g, '-').replace(/(\?|\!|\,)/, '');
}



PreviousNext

Related