title: How to wrap comma separated values string in single quotes?
body: <p>I have the following example of a string:</p>
  
  <pre><code>"label1, label2, label3, label4, label5"
  </code></pre>
  
  <p>Now, because this will be used as an object initialising a jquery plugin, it needs to look like this:</p>
  
  <pre><code>'label1','label2','label3','label4','label5'
  </code></pre>
  
  <p>I already managed to split the string with split(","), turning it into an array, however i am not sure how i can wrap each of the array items with single quotes, at which stage, i will be able to join it back to a string for usage?</p>
  
  <p>Any ideas?</p>
  
  <p>solution can be js only or jquery.</p>