src/Utl.js
function chainPromises(...fns) {
  return [...fns].reduce(
    (result, fn) => result.then(fn),
    Promise.resolve()
  );
}
function chainPromises(...fns) {
  return [...fns].reduce(
    (result, fn) => result.then(fn),
    Promise.resolve()
  );
}
function chainPromises ( ... fns ) { return [ ... fns ] . reduce ( ( result , fn ) => result . then ( fn ) , Promise . resolve ( ) ) ; }
Chain fns together using promises.
Chain fns together using promises .