Packages
A web application in pursuit of meaning in life.
Current section
Files
Jump to
Current section
Files
assets/node_modules/mout/src/function/times.js
define(function () {
/**
* 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;
}
}
}
return times;
});