Parsing query string parameters into a collection
July 8th, 2009A little something about the classic problem of parsing out the query parameters from a URL… There are a lot of implementations out there. Some completely lack URL-decoding, some are way too long and some are inefficient utility functions that grab values one by one. Here’s what I’ve been using in my own projects. I like it because of it’s succinctness and decoupling from document.location.search: