Current File : //usr/lib/node_modules/bower/lib/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;
});