MCPcopy Index your code
hub / github.com/jashkenas/underscore / times

Function times

underscore.js:815–820  ·  view source on GitHub ↗
(n, iteratee, context)

Source from the content-addressed store, hash-verified

813
814 // Run a function **n** times.
815 function times(n, iteratee, context) {
816 var accum = Array(Math.max(0, n));
817 iteratee = optimizeCb(iteratee, context, 1);
818 for (var i = 0; i < n; i++) accum[i] = iteratee(i);
819 return accum;
820 }
821
822 // Return a random integer between `min` and `max` (inclusive).
823 function random(min, max) {

Callers

nothing calls this directly

Calls 2

optimizeCbFunction · 0.70
iterateeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…