title: How to change an array of objects to a string list with commas?
body: <p>I currently have an array in angular that I would like to change the structure of. Example array:</p>
  <pre><code>0: &quot;Car 1&quot;
  1: &quot;Car 2&quot;
  2: &quot;Car 3&quot;
  3: &quot;Car 4&quot;
  4: &quot;Car 5&quot;
  5: &quot;Car 6&quot;
  </code></pre>
  <p>I would like to convert it to <code>Car1,Car2,Car3,Car4,Car5</code> so that I can use the <code>IndexOf()</code> function for each comma.</p>