Created
June 14, 2012 21:45
-
-
Save fabiancarlos/2933160 to your computer and use it in GitHub Desktop.
Remover todos espaços em branco (JS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.trim = function () { | |
return this.replace(/^\s*/, "").replace(/\s*$/, ""); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment