index.js
function times(n, fn) {
    var counter = [];
    return this.then(function(last) {
        for (var i = 0; i < n; i++) {
            counter.push(last || i);
        }
        return Q(counter).map(fn);
    });
}
function times(n, fn) {
    var counter = [];
    return this.then(function(last) {
        for (var i = 0; i < n; i++) {
            counter.push(last || i);
        }
        return Q(counter).map(fn);
    });
}
function times ( n , fn ) { var counter = [ ] ; return this . then ( function ( last ) { for ( var i = 0 ; i < n ; i ++ ) { counter . push ( last || i ) ; } return Q ( counter ) . map ( fn ) ; } ) ; }
Calls the callback function n times, and accumulates results in the same manner you would use with map.
@promise {*}        last
@param   {number}   n : How many times to iterate
@param   {function} fn : The function called per iteration
@param value : Last return value
@returns {array} New array
Calls the callback function n times and accumulates results in the same manner you would use with map .