title: Using moment to filter an array by 'today' and 'tomorrow'
body: <p>I need to filter an array to get items where at least one of two fields fall today or tomorrow.</p>
  
  <p>In this case, it's two lists:</p>
  
  <ol>
  <li>Flights today where either a departure or arrival is today</li>
  <li>Flights tomorrow where either a departure or arrival is tomorrow</li>
  </ol>
  
  <p>The database information includes times, but the time is irrelevant to the filter, only the day is relevant.</p>
  
  <p>The database fields looks like this:</p>
  
  <ul>
  <li>departure_date: 1564011360000</li>
  <li>arrival_date: 1564026420000</li>
  </ul>
  
  <p>I've got it working somewhat with the following poor code and plenty of 'no-mixed-operators' warnings. The result is correct though.</p>
  
  <pre><code>    const flightsToday =
        _flights &amp;&amp;
        _flights.filter(
          _flights =&gt;
          _flights.arrival_date &lt; moment().endOf('day') &amp;&amp; _flights.arrival_date &gt; moment().startOf('day') ||
            _flights.departure_date &lt; moment().endOf('day') &amp;&amp; _flights.departure_date &gt; moment().startOf('day')
       );
      const flightsTomorrow =
        _flights &amp;&amp;
        _flights.filter(
          _flights =&gt;
          _flights.arrival_date &lt; moment().endOf('day').add(1, 'day') &amp;&amp; _flights.arrival_date &gt; moment().startOf('day').add(1, 'day') ||
          _flights.departure_date &lt; moment().endOf('day').add(1, 'day') &amp;&amp; _flights.departure_date &gt; moment().startOf('day').add(1, 'day')
        );
  </code></pre>
  
  <p>I would be grateful if someone has a cleaner, more compliant way of doing this.</p>