src code

instance method Number#times

Number#times(iterator) → Number

Calls iterator the specified number of times. The function takes an integer as the first parameter; it will start at 0 and be incremented after each invocation.