title: Call API with the result of array.filter
body: <p>I'm struggling to solve this problem.</p>
  <p>To be short, I have an array coming from a request of my database with a deezer_id for each element.
  I have a research in my page, and for that i want to filter the data from my database to know if a person like the song or not (kept in DB) et match with the id of the data.
  After that i need to pass this id to my api calls to deezer.</p>
  <p>But i can't return anything from the api calls inside my filter, i think the fact that filtre is sync block the data.</p>
  <p>here is my code</p>
  <pre><code>        return items = items.filter((item) =&gt; {
          var data = this.listOfFavorites /*data from DB which is a query in another func*/
          var idAlbum = item.id_deezer.toString()
          for (var i = 0; i &lt; data.length; i++) {
            if (data[i].attributes.album_id == idAlbum) {
  
             this.getHisto(item).then(item =&gt; {return item})   
            }
          }
        })
  </code></pre>