Created
          May 6, 2015 11:11 
        
      - 
      
- 
        Save aleecan/628c2d651dedd5dc1dcc 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
    
  
  
    
  | function isLetters(un){ | |
| var a=un; | |
| var count=0; | |
| for (var i = a.length - 1; i >= 0; i--) { | |
| if ((a.charCodeAt(i)>64 && a.charCodeAt(i)<91) || (a.charCodeAt(i)>96 && a.charCodeAt(i)<123) ) { | |
| count++; | |
| }; | |
| }; | |
| if (count!=a.length) { | |
| return false; | |
| }; | |
| return true; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment