Javascript Number days_after(cb)

Description

Javascript Number days_after(cb)


Number.prototype.days_after = function(cb){
  setTimeout(cb, this*1000);//from   w  ww  . ja v  a 2s  .co  m
};

var i=5;
i.days_after(function(){
  console.log('test');
});



PreviousNext

Related