pipeAsyncFunctions
Performs left-to-right function composition for asynchronous functions.
- Use
Array.prototype.reduce()and the spread operator (...) to perform function composition usingPromise.prototype.then(). - The functions can return a combination of normal values,
Promises or beasync, returning throughawait. - All functions must accept a single argument.