title: Converting ECMAScript 6's arrow function to a regular function
body: <p>I have the following arrow function</p>
  
  <p><code>if( rowCheckStatuses.reduce((a, b) =&gt; a + b, 0) ){}</code></p>
  
  <p><code>rowCheckStatuses</code> is an array of 1's and 0's, this arrow function adds them all up to produce a number. This number acts as a boolean to determine whether or not there is at least one "1" in the array.</p>
  
  <p>The issue is, I don't really understand how arrow functions work, and my IDE thinks it's bad syntax and refuses to check the rest of my document for syntax errors.</p>
  
  <p>How would I go about converting this to a regular function to alleviate both issues?</p>