Re: [whatwg/url] Convenience method to return an `Object` (#143)

Sorry - fat fingered enter before I'd finished.

I think something like the below would be unsurprising to people:

1. each key value component will be transformed into properties and values of a plain `Object`, `o`
1. if a duplicate key, `K`, is encountered, the current value `V1` of `K` will be replaced with `[V1, V2]`, where `V2` is the second encountered values.
1. if `K` is encountered again, the value array for `K` will be expanded
1. `o` is returned

The returned object will therefore be an object with string keys, and values which are either single strings or arrays of strings, ordered by their position in the query string: `[V1, ... Vn]`.

If there's anything else I can do to help on this issue (Web IDL?) please let me know.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/143#issuecomment-239761455

Received on Monday, 15 August 2016 09:21:29 UTC