UNPKG

bower

Version:

The browser package manager

18 lines (12 loc) 301 B
/** * Iterates over a callback a set amount of times */ function times(n, callback, thisObj){ var i = -1; while (++i < n) { if ( callback.call(thisObj, i) === false ) { break; } } } module.exports = times;