node-if-async
node-if-async copied to clipboard
[suggestion] API changes that will allow skipping of functor declaration
Yes, it can be done right now, but it would be unreadable.
Something like this would look much better:
ifAsync(checkSomething)
.then(doThis)
.else(doThat)
.run(finishIt)