after(count, callback)
Return wrapper around callback function. Once the wrapper is called N times, invoke the callback function. Arguments and scope preserved.
Parameters
count
Number
number of calls before callback function invoked
callback
Function
wrapped callback function
Returns
Function
wrapped callback with coundown feature