MCPcopy Index your code
hub / github.com/prototypejs/prototype / times

Function times

src/prototype/lang/number.js:69–72  ·  view source on GitHub ↗

* Number#times(iterator[,context]) -> Number * - iterator (Function): An iterator function to call. * - context (Object): An optional context (`this` value) to use when * calling `iterator`. * * Calls `iterator` the specified number of times, passing in a number as * the fi

(iterator, context)

Source from the content-addressed store, hash-verified

67 * // -> 6 (e.g., 0 + 1 + 2 + 3)
68 **/
69 function times(iterator, context) {
70 $R(0, this, true).each(iterator, context);
71 return this;
72 }
73
74 /**
75 * Number#toPaddedString(length[, radix]) -> String

Callers

nothing calls this directly

Calls 1

$RFunction · 0.85

Tested by

no test coverage detected