{"size": 451, "ext": "js", "max_stars_repo_path": "JavaScript algorithm scripting/Return Largest Numbers in Arrays/index.js", "max_stars_repo_name": "cacadosman/Do-Whatever", "max_stars_repo_stars_event_min_datetime": "2019-09-30T07:46:56.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-14T08:14:49.000Z", "max_issues_repo_path": "JavaScript algorithm scripting/Return Largest Numbers in Arrays/index.js", "max_issues_repo_name": "cacadosman/Do-Whatever", "max_issues_repo_issues_event_min_datetime": "2020-10-03T13:40:55.000Z", "max_issues_repo_issues_event_max_datetime": "2020-10-16T14:11:52.000Z", "max_forks_repo_path": "JavaScript algorithm scripting/Return Largest Numbers in Arrays/index.js", "max_forks_repo_name": "cacadosman/Do-Whatever", "max_forks_repo_forks_event_min_datetime": "2019-09-30T07:30:59.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-15T02:14:11.000Z"}
{"max_stars_count": 6, "max_issues_count": 5, "max_forks_count": 46, "avg_line_length": 45.1, "max_line_length": 163, "alphanum_fraction": 0.645232816}
function largestOfFour(arr) {
    // we return an array using map. which it iterate over the arr argument
    return arr.map(e => {
        // we return the largest numbers inside the each of element. And we use spread operator, because Math.max can't find out the largest number inside of array
        return Math.max(...e)
    });
}

// we log it
console.log(largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]));