{"size": 308, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "maxnowack/number-array", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.js", "max_issues_repo_name": "maxnowack/number-array", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "maxnowack/number-array", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.5333333333, "max_line_length": 65, "alphanum_fraction": 0.5974025974}
'use strict';

function defaultCompare(a, b) {
  return a < b;
}

module.exports = function (endValue, offset, step, compare) {
  const arr = [];
  const comp = compare || defaultCompare;
  for (let i = 0; comp(arr.length, endValue); i += (step || 1)) {
    arr.push(i + (offset || 0));
  }
  return arr;
};
