title: JavaScript - Split CSV, trim spaces, remove backslash - result is an array of strings
body: <p>Is there a better way to do the following?
  What I want is to be able to split a CSV, trim space(s), and remove backslash(es) - and store into an array.
  Since I've got jQuery already in my project, using that is fine if appropriate for an answer.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var vehicleText = " Hyundai Sonata\\ , Ford Windstar , Mazda B2300 , Chevy Cavalier ";
  
  var cleanVehicles = vehicleText.split(/\s*,\s*/);
  var arr2 = []
  $.each(cleanVehicles, function(idx, val) {
    arr2.push(val.replace(/\\/g, ''));
  });
  
  $("#result").text(arr2);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="result"&gt;original text&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>