callEvery
setInterval on steroids for node.
Usage
npm i -S callevery
The package exports a default function which takes a string argument in the format "hh:mm:ss"
. It returns another function which takes varying number arguments: the function to be called after the set duration and all the arguments to be passed to this function if any.
; const callEveryFiveSeconds = ; const logX = { console;} const timer1 = ; // Logs WestCoastBestCoast every 5 seconds const timer2 = logX "a" "b"; // Alternatively ;;