title: Promise in Lodash map
body: <p>I'm using Lodash to map an array. In the loop, there's a promise to get something from an external API.</p>
  
  <pre><code>var array = _.map(data, function (d, i) {
    getFromMyAPI(d[4])
    .then(function (results) {
      return {
        id: d[0],
        zoneLat: d[2],
        zoneLon: d[3],
        wifiLat: results.a,
        wifiLon: results.b
      }; 
    });
  });
  </code></pre>
  
  <p>But then, if I do </p>
  
  <pre><code>console.log(array);
  </code></pre>
  
  <p>it shows, of course, an empty array. How could I get the content of this array, after the mapping is done?</p>