title: How to serialize an Object into a list of URL query parameters?
body: <p>Without knowing the keys of a JavaScript <code>Object</code>, how can I turn something like...</p>
  
  <pre><code>var obj = {
     param1: 'something',
     param2: 'somethingelse',
     param3: 'another'
  }
  
  obj[param4] = 'yetanother';
  </code></pre>
  
  <p>...into...</p>
  
  <pre><code>var str = 'param1=something&amp;param2=somethingelse&amp;param3=another&amp;param4=yetanother';
  </code></pre>
  
  <p>...?</p>