Javascript String squashSpaces()

Description

Javascript String squashSpaces()


String.prototype.squashSpaces = function() {
    return this.replace(/\s+/g," "); 
}



PreviousNext

Related