title: Using setValues() with arrays of different lengths
body: <p>I have a two-dimensional array in Google apps script that contains arrays of different lengths. I would like to set the values of the array in a spreadsheet. However, because the arrays inside it are different lengths, I receive an error that essentially says the range and the array height don't line up. I've listed an example of the structure of the array below.</p>
  
  <p>I can make it work if I add empty values to each individual array so that they all match the length of the longest array. This seems like a workaround though. Is there another way that I can set the values of the two-dimensional array?
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var array = [
    [a],
    [b,c],
    [d,e],
    [],
    [f,g,h,i],
    [],
    [j,k],
    ]</code></pre>
  </div>
  </div>
  </p>