{"size": 398, "ext": "js", "max_stars_repo_path": "src/utilities/shouldBeStacked.js", "max_stars_repo_name": "esr360/pax5", "max_stars_repo_stars_event_min_datetime": "2019-06-28T14:55:28.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-28T14:55:28.000Z", "max_issues_repo_path": "src/utilities/shouldBeStacked.js", "max_issues_repo_name": "One-Nexus/PAX5", "max_issues_repo_issues_event_min_datetime": "2018-08-04T04:01:05.000Z", "max_issues_repo_issues_event_max_datetime": "2018-08-07T05:08:29.000Z", "max_forks_repo_path": "src/utilities/shouldBeStacked.js", "max_forks_repo_name": "One-Nexus/PAX5", "max_forks_repo_forks_event_min_datetime": "2018-08-03T16:21:58.000Z", "max_forks_repo_forks_event_max_datetime": "2018-08-03T16:21:58.000Z"}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 36.1818181818, "max_line_length": 111, "alphanum_fraction": 0.6407035176}
export default function shouldBeStacked(row, config) {
    for (let [breakpoint, width] of Object.entries(config.breakpoints)) {
        const customStack = row.PAX5.stack == breakpoint && window.matchMedia(`(max-width: ${width})`).matches;

        if (customStack || window.matchMedia(`(max-width: ${config.defaultStack})`).matches) {
            return true;
        }
    }

    return false;
}