Re: URLQuery / FormData

On 9/10/2013 7:44 AM, Domenic Denicola wrote:
> Finally, only tangentially related: what is your plan for
>
> ```js
> const q = new URLQuery();
> q.append('key', 'val1');
> q.get('key').push('val2');
> q.get('key')[999] = 'val999';
> ```
>
> ? I feel like this could be made to work for composing a URLQuery meant for serialization, but would be tricky if the URLQuery is representing the browser's actual URL and changing it is supposed to change the URL. A "returns frozen arrays" mode may be necessary.

It seems like the values want to be a Set, not an Array.

Received on Tuesday, 10 September 2013 16:24:04 UTC