title: How can I filter my data based on multiple conditions?
body: <p>Okay, so I have an array of objects which is the data I want to filter:</p>
  <pre><code>const posts = [
  {
   hairday: '2',
   products: ['product1', 'product2', 'product3', 'product4'],
   rating: '2',
   drying: 'diffuser'
  },
  {
   hairday: '2',
   products: ['product6', 'product7', 'product8', 'product9'],
   rating: '4',
   drying: 'air dry'
  },
  {
   hairday: '3',
   products: ['product10', 'product11', 'product13', 'product14'],
   rating: '3',
   drying: 'air dry'
  },
  {
   hairday: '4',
   products: ['product15', 'product26', 'product37', 'product14'],
   rating: '5',
   drying: 'towel dry'
  },
  ]
  </code></pre>
  <p>I would like to filter the above data by multiple conditions. Here is an example object of conditions:</p>
  <pre><code>{
   products: ['product1', 'product13'],
   hairday: ['2', '3'],
   drying: ['air dry', 'diffuser'],
   rating: []
  }
  </code></pre>
  <p>So I want to get all of the <code>post</code> objects that match at least one of the items in each array.</p>
  <p>So, the filtered items should have product1 OR product13 AND hairday 2 OR hairday 3 AND drying airdry OR drying diffuser AND any rating.</p>
  <p>What's the best way to go through this? Is my filter object structured in the best way?
  Thanks in advance &lt;3</p>