title: How to filter this nested array in typescript. Thank you
body: <p>I tried this code for the array but it did not work, What should I change. Thank you
  he dates property are strings.</p>
  <pre><code> const filteredData1 = this.filteredData.filter(
       c=&gt; c.EntityClosure.every(
        x =&gt; {
          x.closureDate === '2022-07-30';
        }
        ));
  
  
  [
  {
      &quot;id&quot;: 1,
      &quot;name&quot;: &quot;Entity Name Test Entity&quot;,
      &quot;description&quot;: &quot;Description of Entity&quot;,
      &quot;startDate&quot;: &quot;2020-12-01&quot;,
      &quot;endDate&quot;: &quot;2022-01-25&quot;,
      &quot;EntityClosure&quot;: [
          {
              &quot;month&quot;: &quot;2020-12-01&quot;,
              &quot;closureDate&quot;: &quot;2022-07-30&quot;,
              &quot;UserLevel&quot;: {
                  &quot;id&quot;: 1,
                  &quot;name&quot;: &quot;Group leader&quot;,
                  &quot;associated&quot;: true
              }
          }
      ]
  }
  </code></pre>
  <p>]</p>