- From: Jan Potoms <notifications@github.com>
- Date: Sun, 15 Jan 2017 02:13:19 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 15 January 2017 10:13:50 UTC
https://url.spec.whatwg.org/commit-snapshots/31ddc5bd0c4ca1b6d837029c926ec87bc472c168/#example-constructing-urlsearchparams > Otherwise, if init is a record, then for each mapping \(name, value\) in init, append a new name\-value pair whose name is name and value is value, to query’s list\. I propose to also add support for multiple values ```js new URLSearchParams({ x: ['1', '2'], y: 3 }); // x=1&x=2&y=3 ``` Basically: when value is an array, for each item in that array, add a new name-value pair whose name is name and value is that item -- 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/206
Received on Sunday, 15 January 2017 10:13:50 UTC