title: Convert array to comma-delimited text
body: <p>Apologies for this embarassingly simple question but I'm still relatively new to javascript.</p>
  
  <p>I have an array of names, something like</p>
  
  <pre><code>var myArray = ['Hill M','Zhang F','Dong L', 'Wilkinson JS', 'Harris N'];
  </code></pre>
  
  <p>I would like to return a string, with names separated by commas, but with "and" between the final two names, i.e.</p>
  
  <pre><code>'Hill M, Zhang F, Dong L, Wilkinson JS and Harris N'
  </code></pre>
  
  <p>What is the most efficient way to do this in javascript?</p>
  
  <p>How about if I wanted to transpose the names and initials, i.e. to return</p>
  
  <pre><code>'M Hill, F Zhang, L Dong, JS Wilkinson and N Harris'
  </code></pre>