times
Iterates over a callback n times
- Use
Function.prototype.call()to callfnntimes or until it returnsfalse. - Omit the last argument,
context, to use anundefinedobject (or the global object in non-strict mode).
Iterates over a callback n times
Function.prototype.call() to call fn n times or until it returns false.context, to use an undefined object (or the global object in non-strict mode).