Add pipeAsyncFunctions
This commit is contained in:
2
test/pipeAsyncFunctions/pipeAsyncFunctions.js
Normal file
2
test/pipeAsyncFunctions/pipeAsyncFunctions.js
Normal file
@ -0,0 +1,2 @@
|
||||
const pipeAsyncFunctions = (...fns) => arg => fns.reduce((p, f) => p.then(f), Promise.resolve(arg));
|
||||
module.exports = pipeAsyncFunctions
|
||||
Reference in New Issue
Block a user