title: How can I print out a hash map's values as a string in JavaScript?
body: <pre><code>for (var i = 0, keys = Object.keys(map), ii = keys.length; i &lt; ii; i++) {
    console.log(keys[i] + '|' + map[keys[i]]);
  }
  </code></pre>
  
  <p>I have a map that I would like to print out in the following format:</p>
  
  <pre><code>customer1|asdfasdf,asdfasdf,asdfa
  customer2|adf
  customer3|asdf,rthrg
  customer5|dfgbdf
  customer4|bfdgbfg,bdfgb,dfgb
  customer6|sdfgf
  customer7|xcvb,xvcbff
  </code></pre>
  
  <p>Instead I get this. Each of those objects contains the list of strings that I would like to print above. How can I do this?</p>
  
  <pre><code>customer1|[object Object]
  customer2|[object Object]
  customer3|[object Object]
  customer5|[object Object]
  customer4|[object Object]
  customer6|[object Object]
  customer7|[object Object]
  </code></pre>