title: How can I pass async callback function in Array.filter?
body: <p>I need to get check that given zone exists or not through &quot;getOneParkingZone&quot; function. Can anyone suggest a better way to do this and also explain what this is not working?</p>
  <pre><code> let result = Array.filter(async (zone) =&gt;{
             const checkZone = await getOneParkingZone({id: zone.id})
             return checkZone ? true : false ;
         }));
  </code></pre>