title: Expected to return a value at the end of arrow function array-callback-return on filter function
body: <p>I'm working in React and I'm currently getting the error "Expected to return a value at the end of arrow function  array-callback-return". I've searched other questions, but can't seem to find one that matches min (unless I'm totally blind). I have the following code.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const self = this;
  const relevantCompanyMeasures = this.props.companyMeasures
    .filter(companyMeasure =&gt; {
      for(const measure of self.state.measures) {
        if(measure.id === companyMeasure.measure_type_id) return true;
        else return false;
      }
    });</code></pre>
  </div>
  </div>
  </p>
  
  <p>The code loops through two arrays of objects looking for a match between the two. If I had only returned true for matches, I would have understood the error. However, I return false in the case that there is no match. As a result, I'm struggling to see how I'd end up in a situation where there is no return value at the end of the arrow function. </p>