Javascript Number times= function(f)

Description

Javascript Number times= function(f)



Number.prototype.times= function (f) {
  var n= +this;//  www.j a v  a 2  s  .c o  m
  while (n--) f(n);
};



PreviousNext

Related