title: Combine two filter rules for an array of objects
body: <p>I'm using React Redux and I have an array of objects which I'm displaying in a list. I'm having an option to filter the list via a dropdown, depending on a name, and by two toggle buttons, based on kind.</p>
  
  <pre><code>&lt;Table
    data={
      array
        .filter((a) =&gt; a.kind === showByKind)
        .filter((a) =&gt; a.name === filterValue)
        .sort(someIrrelevantSortMethod)
    }
  &gt;
  </code></pre>
  
  <p>Question is how do I combine the two <code>.filter()</code> rules?</p>