Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added query encoding and decoding function #134
added a commit
this pull request
Mar 10, 2014
@joshuacc to me, this seems like a pretty core need in a web application. What would you think about submitting it for inclusion in the core Underscore library?
Also, do you think support for nested data structures should be added, or that it should be kept as is now? For example, giving it this:
Would be parsed to become:
And vice versa. Right now, if you were to pass a nested data structure to
@jonahbron I agree that this is probably a fairly common need, but Underscore core has a pretty high threshold for determining if a utility should be included. Feel free to suggest it, but I think that having those methods prove themselves in contrib first will be a more successful approach.
Regarding nested data structures: I like the concept, but I'm not familiar with how much support there is for this notation in existing frameworks and libraries. Is there good support for it? Can you point to some sources to confirm that?
@joshuacc yeah, I suppose I'll just let it sit. One of the reasons I like Underscore is because it's so small.
As for that parameter structure, support can be seen for this in