Created
June 14, 2014 14:34
-
-
Save Ulv/c9623c0c69845241f3c5 to your computer and use it in GitHub Desktop.
coffeescript encode query string
This file contains 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
encodeQueryData = (data) -> | |
ret = [] | |
for d of data | |
ret.push(encodeURIComponent(d) + "=" + encodeURIComponent(data[d])) | |
ret.join "&" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment