title: Lodash appending a comma
body: <p>I cant seem to figure this one out, I am creating a csv string from an object using lodash and I am expecting output looking like this:</p>
  
  <pre><code>data:text/csv;charset=utf-8,prop1,prop2,props
  d1,d2,n1;n2,d3
  d4,d5,n2;n3,d6
  d7,d8,n4;n5,d9
  </code></pre>
  
  <p>but what I am getting is this: </p>
  
  <pre><code>data:text/csv;charset=utf-8,prop1,prop2,props
  d1,d2,n1;n2,d3
  ,d4,d5,n2;n3,d6
  ,d7,d8,n4;n5,d9
  </code></pre>
  
  <p>here is how it looks in excel:</p>
  
  <p><img src="https://i.stack.imgur.com/ovhpO.png" alt="enter image description here"></p>
  
  <p>Here is some simplified code that demonstrates the issue:</p>
  
  <pre><code>var csvContent = "data:text/csv;charset=utf-8,prop1,prop2,props\n",
  data = [
      {prop1: "d1", prop2: "d2", props: [{name: "n1"},{name: "n2"}], prop3: "d3" },
      {prop1: "d4", prop2: "d5", props: [{name: "n2"},{name: "n3"}], prop3: "d6" },
      {prop1: "d7", prop2: "d8", props: [{name: "n4"},{name: "n5"}], prop3: "d9" }
  ];
  csvContent +=_.map(data, function(rs) {
      var tmp = {};
      tmp.prop1 = rs.prop1;
      tmp.prop2 = rs.prop2;
      tmp.props = _.map(rs.props, function(r) { return r.name; }).join(';');
      tmp.prop3 = rs.prop3;
      return _.values(tmp).join(",") + '\n';
  });
  console.log(csvContent);
  </code></pre>
  
  <p><a href="http://jsfiddle.net/85ast7n1/" rel="nofollow noreferrer">jsfiddle</a></p>