{"size": 752, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "ygrcore/typical-arrays-problems", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/index.js", "max_issues_repo_name": "ygrcore/typical-arrays-problems", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/index.js", "max_forks_repo_name": "ygrcore/typical-arrays-problems", "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": 17.9047619048, "max_line_length": 50, "alphanum_fraction": 0.5385638298}

exports.min = function min (array) {
  if (array == undefined) {
    return 0;
  }
  let minChar = array.length ? array[0] : 0;

  for (let i = 0; i < array.length; i++) {
    if (array[i] < minChar) {
      minChar = array[i];
    }
  }
  return minChar
}

exports.max = function max (array) {
  if (array == undefined) {
    return 0;
  }
  let minChar = array.length ? array[0] : 0;

  for (let i = 0; i < array.length; i++) {
    if (array[i] > minChar) {
      minChar = array[i];
    }
  }
  return minChar
}

exports.avg = function avg (array) {
  if (array === undefined) {
    return 0;
  }
  let sum = 0;

  for (let i = 0; i < array.length; i++) {
    sum += array[i];
  }
  let avg = array.length ? sum / array.length : 0;
  return avg;
}
