{"size": 317, "ext": "js", "max_stars_repo_path": "src/app/utilities/conversion.js", "max_stars_repo_name": "scottbedard/charsets.net", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/app/utilities/conversion.js", "max_issues_repo_name": "scottbedard/charsets.net", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/app/utilities/conversion.js", "max_forks_repo_name": "scottbedard/charsets.net", "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": 21.1333333333, "max_line_length": 69, "alphanum_fraction": 0.5583596215}
/**
 * Convert a value to a boolean.
 *
 * @param   {String|Number|Boolean} value   The value being converted
 * @return  {Boolean}
 */
export const convertToBoolean = function (value) {
    return [
        '1',
        'on',
        'true',
        'yes',
    ].indexOf(String(value).toLowerCase().trim()) > -1;
};
