dealing with all those callbacks.
simply download it from npm.
$ yarn add callfn
Require it and put it in any function that needs to have its callbacks handled.
const call = require('callfn')
function someAsyncHandler(...callback) {
call(...callback)
}
$ yarn test
MIT © Kalium