title: Header row values not saving into array
body: <p>Here's my table:
  <a href="https://docs.google.com/spreadsheets/d/1QsP9zWOZHretwohq5e_2puQl0V0IMKHa-E-NJtBU4B4/edit?usp=sharing" rel="nofollow noreferrer">https://docs.google.com/spreadsheets/d/1QsP9zWOZHretwohq5e_2puQl0V0IMKHa-E-NJtBU4B4/edit?usp=sharing</a></p>
  <p>I'm trying to put all values of the first row (the headers) into an array using this code:</p>
  <pre><code>for(let i=0;i&lt;Cimiteri.length;i++)
    {
      var copySheet=as.getSheetByName('Date '+Cimiteri[i]);
      var ValoriA = copySheet.getRange(1,1,copySheet.getLastColumn()-1).getDisplayValues();
      for(let k=0;k&lt;ValoriA.length-1;k++)
      {
        Logger.log(ValoriA[k]);
      }  
  </code></pre>
  <p>The problem is, some of my headers are not beign saved inside the array, &quot;date in ordine&quot; and &quot;20/09/2021 Occupati&quot; are skipped and I can't figure out why.</p>
  <p>Edit:
  A cup of coffee later:</p>
  <pre><code>for(let i=0;i&lt;Cimiteri.length;i++)
    {
      var copySheet=as.getSheetByName('Date '+Cimiteri[i]);
      var ValoriA = copySheet.getRange(1,1,1,copySheet.getLastColumn()-1).getDisplayValues().flat();
      for(let k=0;k&lt;ValoriA.length-1;k++)
      {
        Logger.log(ValoriA[k]);
      }  
  </code></pre>