title: forEach() inside filter()
body: <p>I have the following method:</p>
  
  <pre><code>getDeviceErrors(error) {
  this.devices = this.data.segment.data.devices.filter((device) =&gt; {
            device[this.data.label].error.forEach((errorObj) =&gt; {
              if (errorObj.id === error.id) {
                console.log(true);
                return true;
              }
          });
        });
  }
  </code></pre>
  
  <p>Although <code>true</code> is outputted to the console, <code>this.devices</code> is still empty.</p>
  
  <p>Any idea why?</p>