title: How can I make a JS filter work in the Apps Script API?
body: <p>I am trying to use a filter in order to delete some unnecessary data in the fastest possible way.</p>
  
  <p>Unfortunately, I am getting a <strong>syntax error</strong> in the script editor when trying to save the following code: </p>
  
  <pre><code>function deleteRows(dataRange){
  
          var formated = dataRange.filter(e =&gt; e[8]||e[9]||e[10]||e[11]||e[12]||e[13]||e[14]||e[15]||e[16]||e[17]||e[18]||e[19]);
  
       return formated;
      }   
  </code></pre>
  
  <p>Does anyone know how can I make the above code work in apps scripts?
  Or if the code can't work, what would be the alternative... I am out of ideas...</p>