Delay a function call - Node.js Data Type

Node.js examples for Data Type:function

Description

Delay a function call

Demo Code

Function.prototype.delay = function(timeout){
  return setTimeout(this, timeout);
};

Related Tutorials