Created
October 6, 2016 06:27
-
-
Save yevgnenll/995aae48529a515d2c55afadd9fd2830 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.stripWhiteSpace = function(){ | |
var res = []; | |
for(var i = 0; i < this.length; i++) { | |
var tempChar = this.charAt(i); | |
if( tempChar != ' ') { | |
res.push(tempChar); | |
} | |
} | |
return res.join(""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment