title: Extract URL Query String ES6
body: <p>What is the correct way to extract a query string in ES6? </p>
  
  <p>I have written this function:</p>
  
  <pre><code>getUrlParams(queryString) {
      const hashes = queryString.slice(queryString.indexOf('?') + 1).split('&amp;');
      const params = {};
      hashes.map((hash) =&gt; {
        const [key, val] = hash.split('=');
        params[key] = decodeURIComponent(val);
      });
  
      return params;
    }
  </code></pre>
  
  <p>However ESLint compains that it expected this to be used by class method and it expected a return value in the arrow function.</p>