Skip to content

Instantly share code, notes, and snippets.

@frostney
Created February 15, 2013 20:38
Show Gist options
  • Save frostney/4963372 to your computer and use it in GitHub Desktop.
Save frostney/4963372 to your computer and use it in GitHub Desktop.
Converts an objects into a query string
toQueryString = (obj) ->
queryArray = []
for key, value of obj
queryArray.push "#{key}=#{value}"
queryArray.join('&')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment