Skip to content

Instantly share code, notes, and snippets.

@contra contra/
Created Apr 24, 2012

What would you like to do?
Tiny window.location parser javascript/coffee-script
parseLocation = ->
out = {}
for key in "&"
pair = key.split "="
out[pair[0]] = pair[1]
return out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.