{"size": 911, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "Evt-Nadya/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": "Evt-Nadya/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": "Evt-Nadya/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.5918367347, "max_line_length": 35, "alphanum_fraction": 0.4270032931}
exports.min = function min(array) {
    if (array === undefined) {
        return 0;
    }
    var len = array.length;
    if (len === 0) {
        return 0;
    }
    var min = array[0];
    for (var i = 0; i < len; i++) {
        if (array[i] < min) {
            min = array[i];
        }
    }
    return min;
}

exports.max = function max(array) {
    if (array === undefined) {
        return 0;
    }
    var len = array.length;
    if (len === 0) {
        return 0;
    }
    var max = array[0];
    for (var i = 0; i < len; i++) {
        if (array[i] > max) {
            max = array[i];
        }
    }
    return max;
}

exports.avg = function avg(array) {
    if (array === undefined) {
        return 0;
    }
    var len = array.length;
    if (len === 0) {
        return 0;
    }
    var sum = 0;
    for (var i = 0; i < len; i++) {
        sum = sum + array[i];
    }
    return sum / len;
}
