JavaScript async/await implemented in V8
Promises are like cancer, and async/await is just treating the symptoms.<p><pre><code>  // Callback
  dataCollection.find('somethingSpecific', function getIds(dataArray) {
    var ids = dataArray.map(item => item.id));
    display(ids)
  });


  // Promise
  var dataArray = dataCollection.find('somethingSpecific');
  var ids = pmap(dataArray, function(item) { // Cancer cell 
    return item.id;
  });
  pdisplay(ids); // Cancer cell 
  // The cancer grows ...
  function pmap (dataPromise, fn) {
    return dataPromise.then(
    function(data) {
      return map(data, fn);
    });
  }
  // The cancer grows ...
  function pdisplay(dataPromise) {
    dataPromise.then(function(data) {
      display(data);
    },function(err) {
      display(err);
    });
  }</code></pre>