Nodejs Function Repeat repeat(interval)

Here you can find the source of repeat(interval)

Method Source Code

Function.prototype.repeat = function(interval){
   return setInterval(this, interval);
};

Related

  1. sleep(delay)
    function sleep(delay){
      var start = new Date().getTime();
      while (new Date().getTime() < start + delay);