title: What javascript techniques are used in this array parser?
body: <p>I have the following script that dumps a given array's contents</p>
  
  <pre><code>   function dump(obj) {
              obj = obj || {};
              var result = [];
              $.each(obj, function (key, value) { result.push('"' + key + '":"' + value + '"'); });
              return '{' + result.join(',') + '}';
          }
  </code></pre>
  
  <p>... but I don't understand the "array" functions of this. Can you tell me what I need to learn to comprehend what is going within the .each statement?</p>
  
  <p><strong>Update</strong></p>
  
  <p><code>e.values</code> below is an example of what obj looks like. </p>
  
  <p><img src="https://i.stack.imgur.com/5X94y.png" alt="enter image description here"></p>