title: jQuery: Looping through object properly?
body: <p>I am trying to loop through the below shown JS object with the  following code snippet, while needing to fetch both the index key as well as the inner object.</p>
  
  <p>How on earth should I do this, as the following doesn't work?</p>
  
  <h1>The object:</h1>
  
  <pre><code>({ prop_1:["1", "2"],
   prop_2:["3", "4"]})
  </code></pre>
  
  <h1>My code:</h1>
  
  <pre><code>$.each(myObject, function(key,valueObj){
      alert(key + "/" + valueObj.toSource() );
  });
  </code></pre>
  
  <h1>Expected output:</h1>
  
  <pre><code>prop_1 / (["1", "2"])
  </code></pre>