title: Filter data using multiple object value in javascript
body: <p><strong>Firstly sorry for this long post.</strong> I know this question has been asked before, but existing solutions do not seem to work for my case. But that doesn't solve my purpose.</p>
  <p>My sample data looks like this:</p>
  <pre><code>const data = [
    {
      id: 26201,
      title: &quot;BusinessNZ Services Index&quot;,
      country: &quot;USD&quot;,
      date: &quot;19th Jun 6:30 PM&quot;,
      impact: &quot;Low&quot;,
      forecast: &quot;&quot;,
      previous: &quot;51.4&quot;,
      created_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      updated_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      day: &quot;Sunday&quot;,
    },
    {
      id: 26202,
      title: &quot;Rightmove HPI m/m&quot;,
      country: &quot;GBP&quot;,
      date: &quot;19th Jun 7:01 PM&quot;,
      impact: &quot;Low&quot;,
      forecast: &quot;&quot;,
      previous: &quot;2.1%&quot;,
      created_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      updated_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      day: &quot;Sunday&quot;,
    },
    {
      id: 26203,
      title: &quot;German PPI m/m&quot;,
      country: &quot;EUR&quot;,
      date: &quot;20th Jun 2:00 AM&quot;,
      impact: &quot;Low&quot;,
      forecast: &quot;1.5%&quot;,
      previous: &quot;2.8%&quot;,
      created_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      updated_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      day: &quot;Sunday&quot;,
    },
    {
      id: 26204,
      title: &quot;MPC Member Haskel Speaks&quot;,
      country: &quot;GBP&quot;,
      date: &quot;20th Jun 4:00 AM&quot;,
      impact: &quot;Low&quot;,
      forecast: &quot;&quot;,
      previous: &quot;&quot;,
      created_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      updated_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      day: &quot;Monday&quot;,
    },
    {
      id: 26205,
      title: &quot;Bank Holiday&quot;,
      country: &quot;USD&quot;,
      date: &quot;20th Jun 9:00 AM&quot;,
      impact: &quot;Holiday&quot;,
      forecast: &quot;&quot;,
      previous: &quot;&quot;,
      created_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      updated_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      day: &quot;Monday&quot;,
    },
    {
      id: 26206,
      title: &quot;MPC Member Mann Speaks&quot;,
      country: &quot;GBP&quot;,
      date: &quot;20th Jun 9:00 AM&quot;,
      impact: &quot;Low&quot;,
      forecast: &quot;&quot;,
      previous: &quot;&quot;,
      created_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      updated_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      day: &quot;Monday&quot;,
    },
    {
      id: 26207,
      title: &quot;ECB President Lagarde Speaks&quot;,
      country: &quot;EUR&quot;,
      date: &quot;20th Jun 9:00 AM&quot;,
      impact: &quot;Medium&quot;,
      forecast: &quot;&quot;,
      previous: &quot;&quot;,
      created_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      updated_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      day: &quot;Monday&quot;,
    },
    {
      id: 26208,
      title: &quot;ECB President Lagarde Speaks&quot;,
      country: &quot;EUR&quot;,
      date: &quot;20th Jun 11:00 AM&quot;,
      impact: &quot;Medium&quot;,
      forecast: &quot;&quot;,
      previous: &quot;&quot;,
      created_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      updated_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
      day: &quot;Monday&quot;,
    },
  ];
  </code></pre>
  <p>I want to filter data using multiple objects whose value is true.</p>
  <p>sample object:</p>
  <pre><code>const countrys = {
    NZD: false,
    AUD: true,
    CAD: false,
    EUR: false,
    GBP: false,
    USD: true,
    CHF: false,
    JPY: false,
    CNY: false,
  };
      
  const days = {
    Sunday: true,
    Monday: false,
    Tuesday: true,
    Wednesday: false,
    Thursday: false,
    Friday: false,
  };
  
  const impacts = {
    Low: true,
    Medium: true,
    High: false,
    Holiday: false,
  };
  </code></pre>
  <p>My filter data will be all object true values if any or nothing.</p>
  <p>For this example, the result will be my data's first element.</p>
  <pre><code>   {
              id: 26201,
              title: &quot;BusinessNZ Services Index&quot;,
              country: &quot;USD&quot;,
              date: &quot;19th Jun 6:30 PM&quot;,
              impact: &quot;Low&quot;,
              forecast: &quot;&quot;,
              previous: &quot;51.4&quot;,
              created_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
              updated_at: &quot;2022-06-23T13:15:02.000000Z&quot;,
              day: &quot;Sunday&quot;,
  }
  </code></pre>
  <p><strong>If there are one or more true values then check using this object or i want to just skip that object</strong>.</p>
  <p><strong>I want to make a filter like this one</strong>  <a href="https://e8x.e8funding.com/economic-calendar" rel="nofollow noreferrer">link</a></p>