Holding a callback for some times
$ npm install holding
const holding = ;const done =;;;; // it worksdonetimes; // show called timesdonecalled; // show fn call status
holding(n, fn, context)
holding times, it will execute fn after n times.
holding(n, fn, context).times
- show called times.
holding(n, fn, context).called
- show fn call status.
holding.assert(n, fn, context)
- function for assertion testing, will throw error if call times out of range.