{"size": 743, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "Ruslan-Nikolaevich/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": "Ruslan-Nikolaevich/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": "Ruslan-Nikolaevich/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": 18.1219512195, "max_line_length": 54, "alphanum_fraction": 0.5814266487}

exports.min = function min (array) {
  if (array===undefined||array.length<1) {
    return 0;
  }
  let min=array[0];
  for (let index = 0; index < array.length; index++) {
    if(min>array[index]) {min=array[index]}
    
  }
  return min;
}

exports.max = function max (array) {
  if (array===undefined||array.length<1) {
    return 0;
  }
  let max=array[0];
  for (let index = 0; index < array.length; index++) {
    if(max<array[index]) {max=array[index]}
    
  }
  return max;
  
}

exports.avg = function avg (array) {
  if (array===undefined||array.length<1) {
    return 0;
  }
  let sum=0;
  let avg;
  for (let index = 0; index < array.length; index++) {
    sum+=array[index];
    
  }
  avg= sum/(array.length)
  return avg;
 
}
