Javascript Number times( callback, opt_scope )

Description

Javascript Number times( callback, opt_scope )


Number.prototype.times = function( callback, opt_scope ){
 var max = this.valueOf();
 for( var i = 0; i < max; i++ )
  callback.call( opt_scope || this, i );
};



PreviousNext

Related