title: Url query string in fetch api in javascript
body: <p>How to pass query string with <code>fetch</code> api javascript (<a href="https://github.com/github/fetch" rel="noreferrer">https://github.com/github/fetch</a>)?</p>
  
  <pre><code>var url = "http://www.abcd.com";
  var query = {
      a: "test",
      b: 2
  };
  </code></pre>
  
  <p>Above should be converted to <code>http://www.abcd.com?a=test&amp;b=2</code> when I pass some argument to <code>fetch</code></p>