imports/api/taxons/server/fixtures.js
/**
 * @description
 * Execute a list of Promise return functions in series
 *
 * @param {Array} list - A list of functions returning Promises in series
 **/
@description
Execute a list of Promise return functions in series

@param {Array} list - A list of functions returning Promises in series
@description Execute a list of Promise return functions in series @param { Array } list - A list of functions returning Promises in series
function pseries(list) {
  var p = Promise.resolve();
  return list.reduce(function(pacc, fn) {
    return pacc = pacc.then(fn);
  }, p);
}
function pseries ( list ) { var p = Promise . resolve ( ) ; return list . reduce ( function ( pacc , fn ) { return pacc = pacc . then ( fn ) ; } , p ) ; }
@description
 Execute a list of Promise return functions in series
@description Execute a list of Promise return functions in series