title: Write an array of values to a range of cells in a spreadsheet
body: <p>Using Google Apps Script, is there a way to write the values in a Google Spreadsheet array to a range without looping? </p>
  
  <p>I am thinking something like the following to put one name each into cells <code>A1:A3</code></p>
  
  <pre class="lang-js prettyprint-override"><code>function demoWriteFromArray() {
  
     var employees=["Adam","Barb","Chris"];
  
     ssActive = SpreadsheetApp.getActiveSheet();
  
     rgMyRange = ssActive.getRange("A1:A3");
  
     rgMyRange.setValue(employees)
  } 
  </code></pre>
  
  <p>Problem with above is that after execution, <code>A1:A3</code> all contain <code>={"Adam","Barb","Chris"} and display "Adam"</code>.</p>