title: Spreadsheet - Google App Script [string split function]
body: <p>Just wanted to verify some thought regarding split function. I have constructed a simple code.</p>
  
  <pre><code>var array1 = [{}];
  var string1 = "A, B, C, D";
  
  array1 = string1.split(",");
  </code></pre>
  
  <p>The problem is based on this kind of coding for example in flash. The string1 will split all <code>","</code> then transfers it to the array1 in this format <code>["A","B","C", "D"]</code>. Is this kind of concept similar to Google Spreadsheet - GAS? If yes can you site some example? Thanks a lot guys.</p>
  
  <p>P.S: When I tried splitting the <code>","</code> it only returns the value <code>"A B C D"</code> as a single element.</p>
  
  <p>Thanks,
  Nash :)</p>