{"size": 501, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "AlekseyMinsk/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": "AlekseyMinsk/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": "AlekseyMinsk/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": 20.04, "max_line_length": 65, "alphanum_fraction": 0.5968063872}

exports.min = function min (array) {
	if(array === undefined || array.length === 0) {
		return 0;
	}
	var value = Math.min(...array);
	return value;
}

exports.max = function max (array) {
  if(array === undefined || array.length === 0) {
		return 0;
	}
	var value = Math.max(...array);
	return value;
}

exports.avg = function avg (array) {
  if(array === undefined || array.length === 0) {
		return 0;
	}
	var average = arr => arr.reduce((a,b) => a + b, 0) / arr.length;
  return average(array);
}
