function composition in nodejs async await code example
Example: javascript pipe async functions
const pipeAwait = (...fns) => param => fns.reduce(async (result, next) => next(await result), param)
const pipeAwait = (...fns) => param => fns.reduce(async (result, next) => next(await result), param)