call-last
Call the last function argument found. By default the function is called async, there is a sync method provided if needed.
Install
With npm
npm install call-last
Usage
Node.js
var callLast = // mock some method, almost a noop, but continues control flowredisset = callLast // run things synchronously if you wantsomethingmethod = callLastsync // bind some argumentsvar callWith = callLast