dist/server.bundle.js
/**
 * Throw an array to it and a function which can generate promises
 * and it will call them sequentially, one after another
 */
Throw an array to it and a function which can generate promises
and it will call them sequentially, one after another
Throw an array to it and a function which can generate promises and it will call them sequentially one after another
function sequence(items, consumer) {
  var results = [];
  var runner = function runner() {
    var item = items.shift();
    if (item) {
      return consumer(item).then(function (result) {
        results.push(result);
      }).then(runner);
    }
    return _promise2.default.resolve(results);
  };
  return runner();
}
function sequence ( items , consumer ) { var results = [ ] ; var runner = function runner ( ) { var item = items . shift ( ) ; if ( item ) { return consumer ( item ) . then ( function ( result ) { results . push ( result ) ; } ) . then ( runner ) ; } return _promise2 . default . resolve ( results ) ; } ; return runner ( ) ; }
Throw an array to it and a function which can generate promises
 and it will call them sequentially, one after another
Throw an array to it and a function which can generate promises and it will call them sequentially one after another