Current File : /home/tradevaly/www/node_modules/collect.js/src/methods/times.js
'use strict';

module.exports = function times(n, fn) {
  for (let iterator = 1; iterator <= n; iterator += 1) {
    this.items.push(fn(iterator));
  }

  return this;
};