Last active
          November 23, 2015 01:05 
        
      - 
      
- 
        Save dmidlo/0aff41be192a7d96055a 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 CompairStrTails(str, target) { | |
| if(target.length > str.length) | |
| { | |
| target = target.substring(target.length-str.length); | |
| } | |
| str = str.substring(str.length-target.length); | |
| if(target === str) | |
| { | |
| return(true); | |
| } | |
| else | |
| { | |
| return(false); | |
| } | |
| } | |
| end("Bastian", "n"); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment