Find Callback
Finds and returns a node-style callback (function that is the last argument) from given array or returns undefined
if not found.
Install
npm install find-callback
Usage
var findCb = { cb = //etc }
Parameters
array
Type: Array
or arguments object
The array to search for a node-style callback. The last item in the array will be returned if it is a function.