Created
          November 4, 2011 09:19 
        
      - 
      
- 
        Save kpuputti/1338982 to your computer and use it in GitHub Desktop. 
    URL GEt params from location.hash parsing
  
        
  
    
      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
    
  
  
    
  | // one liner | |
| _.tap({}, function (o) { _.each(location.hash.split('&'), function (p) { var s = p.split('='); o[s[0]] = s[1]; }); }); | |
| // indented | |
| _.tap({}, function (o) { | |
| _.each(location.hash.split('&'), function (p) { | |
| var s = p.split('='); | |
| o[s[0]] = s[1]; | |
| }); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment