{"size": 341, "ext": "js", "max_stars_repo_path": "test/perf/ifelse2ternary.js", "max_stars_repo_name": "ArnaudBuchholz/gpf-js", "max_stars_repo_stars_event_min_datetime": "2015-05-15T18:42:42.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-03T23:03:32.000Z", "max_issues_repo_path": "test/perf/ifelse2ternary.js", "max_issues_repo_name": "ArnaudBuchholz/gpf-js", "max_issues_repo_issues_event_min_datetime": "2015-01-28T00:04:32.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T00:45:14.000Z", "max_forks_repo_path": "test/perf/ifelse2ternary.js", "max_forks_repo_name": "ArnaudBuchholz/gpf-js", "max_forks_repo_forks_event_min_datetime": "2019-06-19T16:41:22.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-02T15:41:50.000Z"}
{"max_stars_count": 14, "max_issues_count": 301, "max_forks_count": 4, "avg_line_length": 14.8260869565, "max_line_length": 39, "alphanum_fraction": 0.3988269795}
"use strict";
/*eslint-disable no-ternary*/

var count = 0;

module.exports = {

    "if/else": function () {
        var result;
        if (++count % 2) {
            result = "1";
        } else {
            result = "2";
        }
        return result;
    },

    "?:": function () {
        return ++count % 2 ? "1" : "2";
    }

};
