Created
December 6, 2014 19:01
-
-
Save DFOXpro/e945154557bc40784e21 to your computer and use it in GitHub Desktop.
BogotáJS Challenge
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
/* | |
* Licence: WTF-PL | |
*/ | |
var main = function(value){ | |
var i = 0; | |
value=value.replace(/ /g,"") | |
while(i < value.length){ | |
if(value[i]!=value[value.length-(1+i)]) | |
return false; | |
i++; | |
}; | |
return true; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment