[whatwg/url] easy initialization: `new URLSearchParams({ using: "a nice API" })` (#141)

It'd be really convenient if you could initialize a search params with an object. It'd cover a lot of use-cases far more concisely than having to imperatively mutate an object post-construction:

```javascript
new URLSearchParams({
  some: dynamicValue,
  [aDynamicKey]: dynamicValue,
});
```

Equally it'd be nice if this worked with a `Map`, or iterators that produce `[k,v]` tuples.

-- 
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/141

Received on Friday, 12 August 2016 14:12:02 UTC