{"size": 569, "ext": "js", "max_stars_repo_path": "src/ex2_js-basics-part2/task-03.js", "max_stars_repo_name": "efandor/external-courses", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/ex2_js-basics-part2/task-03.js", "max_issues_repo_name": "efandor/external-courses", "max_issues_repo_issues_event_min_datetime": "2021-03-12T09:28:53.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-02T21:12:10.000Z", "max_forks_repo_path": "src/ex2_js-basics-part2/task-03.js", "max_forks_repo_name": "efandor/external-courses", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 19.6206896552, "max_line_length": 65, "alphanum_fraction": 0.4551845343}
function exploreArray(array) {
    const outputArray = {
        even: 0,
        odd: 0,
        zero: 0,
    };
    
    array.forEach(item => {
        if (typeof item !== 'number' || Number.isNaN(item)) {
            return; 
        }

        if (item === 0) {
            outputArray.zero += 1;
            return; 
        }

        if (item % 2 === 0) {
            outputArray.even += 1;
            return; 
        }

        outputArray.odd += 1;
    });

    return [outputArray.even, outputArray.odd, outputArray.zero];
}

module.exports = exploreArray;