Nodejs Utililty Methods Function Repeat

List of utility methods to do Function Repeat

Description

The list of methods to do Function Repeat are organized into topic(s).

Method

repeat(interval)
Function.prototype.repeat = function(interval){
  return setInterval(this, interval);
};
sleep(delay)
function sleep(delay){
  var start = new Date().getTime();
  while (new Date().getTime() < start + delay);